Sign in to follow this  
_Lopez

Offsetting shadow map on parallax mapped geometry

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this