Raoul v. R 1 yıl önce
ebeveyn
işleme
3c8d309ed5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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,
 			useFog: material.fog === true,
-			fogExp2: ( fog && fog.isFogExp2 ),
+			fogExp2: ( !! fog && fog.isFogExp2 ),
 
 			flatShading: material.flatShading === true,