Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Shadow Map too big

4: Adsense

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   

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.






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.