Skip to content

Commit

Permalink
fix error with clipShadows true
Browse files Browse the repository at this point in the history
  • Loading branch information
trusktr committed Mar 22, 2022
1 parent 24ca284 commit f6cfbfc
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
Expand Up @@ -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 ) ) {

Expand Down

0 comments on commit f6cfbfc

Please sign in to comment.