Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadows Fix #3574

Merged
merged 2 commits into from
Feb 15, 2016
Merged

Shadows Fix #3574

merged 2 commits into from
Feb 15, 2016

Conversation

lilleyse
Copy link
Contributor

For #2594

This should fix the glitchiness from before. The shadow map matrix wasn't using the correct inverse view-projection matrix. It needed to update per-frustum rather than just once with the entire frustum range.

Thanks @bagnell for the help with this!

@@ -803,6 +802,7 @@ define([
uniformState._inverseProjectionDirty = true;
uniformState._inverseProjectionOITDirty = true;
uniformState._viewProjectionDirty = true;
uniformState._inverseViewProjectionDirty = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes in UniformState didn't affect the issue at hand, but they may be good changes to make.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For sure, the old code was wrong.

pjcozzi added a commit that referenced this pull request Feb 15, 2016
@pjcozzi pjcozzi merged commit a9207fe into shadows Feb 15, 2016
@pjcozzi pjcozzi deleted the shadows-fix branch February 15, 2016 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants