Based on previous 0.035 version, just fixed bugs which i found. Unfortunately Silent Hill 3 game can't be adopted easily, but i'll try to find solution which will not take too much of my time.
EDIT: no, Silent Hill 3 shaders contain bugs which can't be automatically fixed by recompilation. Here is an example of shaders they did, dublicated code and declarations (vertex shaders contain mostly noninitialized vector components bugs and fog register bugs):
Code: Select all
ps_1_1
// ps.1.1
tex t0
tex t1
tex t3
mul_x2 t3.rgb,t3,v1
add_sat r0,v0,t3
mul t1.rgb,t1,r0
mul r0,t0,r0
mul r1,t1,v0.a
mad r0.rgb,r1,t0.a,r0
+mov r0.a,t1
tex t0
tex t1
tex t3
mul_x2 t3.xyz, t3, v1
add_sat r0, v0, t3
mul t1.xyz, t1, r0
mul r0, t0, r0
mul r1, t1, v0.w
mad r0.xyz, r1, t0.w, r0
+ mov r0.w, t1