Original Post
hi!
i''ve a problem with projective texturemapping under dx9.when I make projective texturemapping(like spotlight attenuation) with
pixel shader 1.1,this effect does not work under dx9!!.with old
directx version(8-8.1) the projective texture work correctly.
here my shaders:
vs.1.1
dcl_position0 v0
dp4 oT0.x,v0,c74 \\ 74->77 projective matrix
dp4 oT0.y,v0,c75
dp4 oT0.z,v0,c76
dp4 oT0.w,v0,c77
dp4 oPos.x,v0,c0
dp4 oPos.y,v0,c1
dp4 oPos.z,v0,c2
dp4 oPos.w,v0,c3
-------------------------------------------------
ps.1.1
tex t0
mov r0,t0
------------------------------------
thanks in advance
Sandro