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

WebGLRenderer: Fix shadow map shader regression. #25270

Merged
merged 2 commits into from
Jan 12, 2023
Merged

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jan 11, 2023

Fixed #25247.

Description

The if statements in shadowmap_vertex need a different organization to avoid the compilation error mentioned in #25247.

@Mugen87 Mugen87 added this to the r149 milestone Jan 11, 2023
@@ -60,4 +45,24 @@ export default /* glsl */`
*/

#endif

// spot lights can be evaluated without active shadow mapping (when SpotLight.map is used)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I hope this comment makes it clear why the below code is executed without a USE_SHADOWMAP definition.

@Mugen87 Mugen87 merged commit 2b7b89f into mrdoob:dev Jan 12, 2023
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.

Shader compilation error with SpotLight and DirectionalLight/PointLight but no shadow map
1 participant