Re: Water shader mod
As you may know, Mafia uses DirectX8, but doesn’t use all its available potential. So I attempted to fix it and replace terrible original water with shaded one. To achieve it I hooked game’s calls to directx and changed its rendering process a bit, also I wrote the shaders, but there are not too fancy, because dx8 maximum supported shader model is 1.4 which is pretty old.
Water now reflects and refracts the city, also there is simplified Fresnel effect.
It tuned differently for each mission for a better look. Only missions without new water are countryside and port missions.
You can download it here: http://www.2shared.com/file/Kg2O4KWn/shaderMod.html?
How to install:
– backup all files, which you will replace with modified ones.
– copy archive contents into game’s folder, except for “game versions” folder.
– get DLL from “game versions” folder which corresponds to your version of the game (1.0/1.1/1.2) and replace original LS3DF.dll by it (do not forget to backup original file).
Also, there is more shading effects possible, so stay tuned, lol.
FPS will not change too much comparing to the original game (actually doesn’t change at all on all tested PCs).
– mod is not very friendly with sky-retexturing mods, but it will be fixed.
– sometimes water shows inside the prison in the prison mission (will be fixed too).
– in some missions you can see some black horizontal hole in the sky. then you’d better remove O_*.4ds and denjasno2.4ds from models.