Просмотр исходного кода

WebGLPrograms: Fixed fog check.

Mr.doob 9 лет назад
Родитель
Сommit
21bc731c8e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/renderers/webgl/WebGLPrograms.js

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

@@ -150,7 +150,7 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
 
 
 			vertexColors: material.vertexColors,
 			vertexColors: material.vertexColors,
 
 
-			fog: fog,
+			fog: !! fog,
 			useFog: material.fog,
 			useFog: material.fog,
 			fogExp: fog instanceof THREE.FogExp2,
 			fogExp: fog instanceof THREE.FogExp2,
 
 

粤ICP备19079148号