Skip to content

Commit 5c4f7ef

Browse files
authored
WebGLRenderer: Fix PCFSoftShadowMap check. (#32593)
1 parent 48c607f commit 5c4f7ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/renderers/webgl/WebGLShadowMap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
9696

9797
if ( lights.length === 0 ) return;
9898

99-
if ( lights.type === PCFSoftShadowMap ) {
99+
if ( this.type === PCFSoftShadowMap ) {
100100

101101
warn( 'WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.' );
102-
lights.type = PCFShadowMap;
102+
this.type = PCFShadowMap;
103103

104104
}
105105

0 commit comments

Comments
 (0)