|
@@ -21001,7 +21001,7 @@ function WebGLShadowMap( _renderer, _objects, _capabilities ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( ( _renderer.localClippingEnabled && material.clipShadows === true && material.clippingPlanes.length !== 0 ) ||
|
|
|
|
|
|
+ if ( ( _renderer.localClippingEnabled && material.clipShadows === true && Array.isArray( material.clippingPlanes ) && material.clippingPlanes.length !== 0 ) ||
|
|
( material.displacementMap && material.displacementScale !== 0 ) ||
|
|
( material.displacementMap && material.displacementScale !== 0 ) ||
|
|
( material.alphaMap && material.alphaTest > 0 ) ) {
|
|
( material.alphaMap && material.alphaTest > 0 ) ) {
|
|
|
|
|
|
@@ -26521,7 +26521,7 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
state = new WebGLState( _gl, extensions, capabilities );
|
|
state = new WebGLState( _gl, extensions, capabilities );
|
|
|
|
|
|
- info = new WebGLInfo( _gl );
|
|
|
|
|
|
+ info = new WebGLInfo();
|
|
properties = new WebGLProperties();
|
|
properties = new WebGLProperties();
|
|
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
|
|
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
|
|
cubemaps = new WebGLCubeMaps( _this );
|
|
cubemaps = new WebGLCubeMaps( _this );
|