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 globe shaders #3753

Merged
merged 3 commits into from
Mar 22, 2016
Merged

Shadows globe shaders #3753

merged 3 commits into from
Mar 22, 2016

Conversation

lilleyse
Copy link
Contributor

For #2594. Merge #3749 first.

This allows for dynamically updating the globe receive-shadows shaders. For too long the Sandcastle demo has not updated correctly when you switch light types, visualize cascades, etc.

I tried not to modify the Globe code, so instead I have a pretty hacky solution in Shadows.html.

@@ -306,12 +306,31 @@
updateLightDirection();
updateShadows();
}

// TODO : this is a very hacky way to reset the globe shaders when shadow properties change
Copy link
Contributor

Choose a reason for hiding this comment

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

This is just for the Sandcastle example, right? If a user needs to do this in practice, we can come up with something cleaner.

pjcozzi added a commit that referenced this pull request Mar 22, 2016
@pjcozzi pjcozzi merged commit ba5042d into shadows Mar 22, 2016
@pjcozzi pjcozzi deleted the shadows-globe-shaders branch March 22, 2016 22:59
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