Skip to main content
GameDev.net gamedev.net
🔒 Locked

Projective TextureMapping Problem dx9

Started by jeppa May 18, 2003 at 7:02 PM 0 replies 250+ views
Original Post
jeppa
jeppa
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.