Sign in to follow this  
I CAN DO

Shadow Map too big

Recommended Posts

I CAN DO    164

All is OK in the shader map texture, but the is scaled (too big).

The coord texture:

mat4 bias = mat4(0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.5, 0.5, 0.5, 1.0);

ShadowCoord = bias * projMatrix * viewModelMatrix * vec4(position,1);

Why in another example the textureMap coord is:

ShadowCoord = bias * projMatrix * viewModelMatrix * ViewMatrixInverse;

And another:

ShadowCoord = bias * projMatrix * viewModelMatrix * ModelMatrixRenderObject * vec4(position,1);

Please, does anyone can explain the differences? and Why do my Texture Map is scaled?

Thank you, best regards.

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