Can i rewrite a game shader ?

gl33k

Newcomer
i want to know if i can rewrite / convert a game pixel / vertex shader .
saying from 1.1 to 3.0.

can i rewrite the shader code without touch the binarie code ? is it working ?

Code:
ps.1.1

tex t0
texm3x3pad t1, t0_bx2
texm3x3pad t2, t0_bx2
texm3x3vspec t3, t0_bx2

lrp r0.xyz, c1.w, t3, c1
mov r0.w, v0.w
 
You MIGHT be able to do that, but it depends alot on what the game actually does. Which D3D does it actually use (D3D8 or D3D9), which D3DX library was it linked against,...
 
Back
Top