Jump to content
  • Advertisement
Sign in to follow this  

Offsetting shadow map on parallax mapped geometry

This topic is 3562 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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!