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

ShadowMaterial: Fix handling shadow map offset #19681

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

Oletus
Copy link
Contributor

@Oletus Oletus commented Jun 17, 2020

ShadowMaterial vertex shader needs to include common and have access to the view matrix to be able to apply shadow normal offset. This fixes issue introduced in PR #18915.

ShadowMaterial vertex shader needs to include common and have access to the view matrix to be able to apply shadow normal offset.
@Mugen87 Mugen87 added this to the r118 milestone Jun 17, 2020
@@ -1786,6 +1786,7 @@ function WebGLRenderer( parameters ) {
material.isMeshBasicMaterial ||
material.isMeshStandardMaterial ||
material.isShaderMaterial ||
material.isShadowMaterial ||
Copy link
Owner

Choose a reason for hiding this comment

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

Ah, I looked into this and I figured out the <common> bit, but not this bit 🙏

@mrdoob mrdoob merged commit 553de06 into mrdoob:dev Jun 17, 2020
@mrdoob
Copy link
Owner

mrdoob commented Jun 17, 2020

Thanks!

@Oletus
Copy link
Contributor Author

Oletus commented Jun 18, 2020

No problem! Glad to see normal offset support merged.

@Oletus Oletus deleted the shadowmap-offset-fix branch June 18, 2020 07:41
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

3 participants