Browse Source

GLTFLoader: add missing envMapIntensity setting

06wj 6 years ago
parent
commit
c21a3a33a2
1 changed files with 1 additions and 0 deletions
  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) {
 				if (material.envMap) {
 
 
 					uniforms.envMap.value = material.envMap;
 					uniforms.envMap.value = material.envMap;
+					uniforms.envMapIntensity.value = material.envMapIntensity;
 
 
 					// don't flip CubeTexture envMaps, flip everything else:
 					// don't flip CubeTexture envMaps, flip everything else:
 					//  WebGLRenderTargetCube will be flipped for backwards compatibility
 					//  WebGLRenderTargetCube will be flipped for backwards compatibility