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

WebGLShadowMap: fix spotlight shadow updating #11276

Merged
merged 1 commit into from May 4, 2017

Conversation

jaxry
Copy link
Contributor

@jaxry jaxry commented May 3, 2017

A fix for #11273

The shadow camera's projection matrix is used before it is first initialized with the shadow.update method. This bad ordering was introduced with my previous pull request, #11198

I apologize for the carelessness. The code was tested with the lights / spotlights example, but I wasn't diligent enough to check that the render function was being called only once, and not twice as it is in that example.

@mrdoob mrdoob merged commit fad9789 into mrdoob:dev May 4, 2017
@mrdoob
Copy link
Owner

mrdoob commented May 4, 2017

Thanks!

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.

None yet

2 participants