Explorar o código

GLTFLoader: add missing envMapIntensity setting

06wj %!s(int64=6) %!d(string=hai) anos
pai
achega
c21a3a33a2
Modificáronse 1 ficheiros con 1 adicións e 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