浏览代码

GLTFLoader: add missing envMapIntensity setting

06wj 6 年之前
父节点
当前提交
c21a3a33a2
共有 1 个文件被更改,包括 1 次插入0 次删除
  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