Explorar el Código

GLTFLoader: add missing envMapIntensity setting

06wj hace 6 años
padre
commit
c21a3a33a2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      examples/js/loaders/GLTFLoader.js

+ 1 - 0
examples/js/loaders/GLTFLoader.js

@@ -952,6 +952,7 @@ THREE.GLTFLoader = ( function () {
 				if (material.envMap) {
 
 					uniforms.envMap.value = material.envMap;
+					uniforms.envMapIntensity.value = material.envMapIntensity;
 
 					// don't flip CubeTexture envMaps, flip everything else:
 					//  WebGLRenderTargetCube will be flipped for backwards compatibility