Advertisement Jump to content
Sign in to follow this  

shadow map proiection

This topic is 4913 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm tryng to using shadow map for directX but I don't undestand an important passage of the technique. I render on a texture the scene from the light position using pixel shader to render the distance (I use R32 texture format) but when I render the scene I can't project it on the scene. I use this formula for generating texture coordinate for shadow map: value=position x WVP matrix that I use for shadowmap rendering now xyz must be in the range of -1,1 (value+1)/2 must gave me the right texture coordinate. But they are wrong. I lost some passages, can you help me?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!