Jump to content
  • Advertisement
Sign in to follow this  
_Lopez

Offsetting shadow map on parallax mapped geometry

This topic is 3745 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

Hi all, i've got parallax occlusion mapping with penumbra soft shadows up and running for up to 4 point lights. I recently saw a web page that described a way to offset projected shadow maps that take into account for parallax mapped textures. Does anyone know of this method, or where I can find it?

Share this post


Link to post
Share on other sites
Advertisement
Hi,

you have to somehow calculate texture coordinate offset (and then you're adding this offset to texture coordinates), so just add this offset to shadow map coordinate.
Or if you don't know exact offset, you can calculate it this way...

float2 offset = parallaxOcclusedCoordinate - textureCoordinate;

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!