Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error with clipShadows true
Browse files Browse the repository at this point in the history
trusktr committed May 27, 2022

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
1 parent 0c26bb4 commit 16b1c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLShadowMap.js
Original file line number Diff line number Diff line change
@@ -247,7 +247,7 @@ function WebGLShadowMap( _renderer, _objects, _capabilities ) {

}

if ( ( _renderer.localClippingEnabled && material.clipShadows === true && material.clippingPlanes.length !== 0 ) ||
if ( ( _renderer.localClippingEnabled && material.clipShadows === true && material.clippingPlanes && material.clippingPlanes.length !== 0 ) ||
( material.displacementMap && material.displacementScale !== 0 ) ||
( material.alphaMap && material.alphaTest > 0 ) ) {

0 comments on commit 16b1c65

Please sign in to comment.