Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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