Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Shadow Map too big


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 I CAN DO   Members   -  Reputation: 164

Like
0Likes
Like

Posted 30 April 2013 - 04:25 PM

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.



Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS