Browse Source

Fix fogExp2 (#27430)

Raoul v. R 1 year ago
parent
commit
3c8d309ed5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/webgl/WebGLPrograms.js

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

@@ -300,7 +300,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
 
 
 			fog: !! fog,
 			fog: !! fog,
 			useFog: material.fog === true,
 			useFog: material.fog === true,
-			fogExp2: ( fog && fog.isFogExp2 ),
+			fogExp2: ( !! fog && fog.isFogExp2 ),
 
 
 			flatShading: material.flatShading === true,
 			flatShading: material.flatShading === true,