ソースを参照

WebGLRenderer: Fix `PCFSoftShadowMap` check. (#32593)

Michael Herzog 2 ヶ月 前
コミット
5c4f7efd26
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/renderers/webgl/WebGLShadowMap.js

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

@@ -96,10 +96,10 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
 
 
 		if ( lights.length === 0 ) return;
 		if ( lights.length === 0 ) return;
 
 
-		if ( lights.type === PCFSoftShadowMap ) {
+		if ( this.type === PCFSoftShadowMap ) {
 
 
 			warn( 'WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.' );
 			warn( 'WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.' );
-			lights.type = PCFShadowMap;
+			this.type = PCFShadowMap;
 
 
 		}
 		}
 
 

粤ICP备19079148号