From f6cfbfc8217a7df72e1e2df4dec0fd796c2446c2 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Mon, 21 Mar 2022 19:31:29 -0700 Subject: [PATCH] fix error with clipShadows true --- src/renderers/webgl/WebGLShadowMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/webgl/WebGLShadowMap.js b/src/renderers/webgl/WebGLShadowMap.js index e208280dfaf7fb..19d21099d8f5af 100644 --- a/src/renderers/webgl/WebGLShadowMap.js +++ b/src/renderers/webgl/WebGLShadowMap.js @@ -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 ) ) {