Steven Lu (PuTTY Win7 on rMBP[tmux]) 10 سال پیش
والد
کامیت
189ded0892
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/renderers/webgl/WebGLShadowMap.js

+ 1 - 1
src/renderers/webgl/WebGLShadowMap.js

@@ -237,7 +237,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
 		var clearColor = _renderer.getClearColor(),
 		var clearColor = _renderer.getClearColor(),
 		clearAlpha = _renderer.getClearAlpha();
 		clearAlpha = _renderer.getClearAlpha();
 
 
-		_gl.clearColor( clearColor.r, clearColor.g, clearColor.b, clearAlpha );
+		_renderer.setClearColor( clearColor, clearAlpha );
 		_state.enable( _gl.BLEND );
 		_state.enable( _gl.BLEND );
 
 
 		if ( scope.cullFace === THREE.CullFaceFront ) {
 		if ( scope.cullFace === THREE.CullFaceFront ) {