瀏覽代碼

Removed outdated comments

WestLangley 5 年之前
父節點
當前提交
48eaa22245
共有 3 個文件被更改,包括 0 次插入12 次删除
  1. 0 4
      examples/js/loaders/GLTFLoader.js
  2. 0 4
      examples/jsm/loaders/GLTFLoader.js
  3. 0 4
      src/renderers/WebGLRenderer.js

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

@@ -946,10 +946,6 @@ THREE.GLTFLoader = ( function () {
 					uniforms.envMap.value = material.envMap;
 					uniforms.envMapIntensity.value = material.envMapIntensity;
 
-					// don't flip CubeTexture envMaps, flip everything else:
-					//  WebGLCubeRenderTarget will be flipped for backwards compatibility
-					//  WebGLCubeRenderTarget.texture will be flipped because it's a Texture and NOT a CubeTexture
-					// this check must be handled differently, or removed entirely, if WebGLCubeRenderTarget uses a CubeTexture in the future
 					uniforms.flipEnvMap.value = material.envMap.isCubeTexture ? - 1 : 1;
 
 					uniforms.reflectivity.value = material.reflectivity;

+ 0 - 4
examples/jsm/loaders/GLTFLoader.js

@@ -1014,10 +1014,6 @@ var GLTFLoader = ( function () {
 					uniforms.envMap.value = material.envMap;
 					uniforms.envMapIntensity.value = material.envMapIntensity;
 
-					// don't flip CubeTexture envMaps, flip everything else:
-					//  WebGLCubeRenderTarget will be flipped for backwards compatibility
-					//  WebGLCubeRenderTarget.texture will be flipped because it's a Texture and NOT a CubeTexture
-					// this check must be handled differently, or removed entirely, if WebGLCubeRenderTarget uses a CubeTexture in the future
 					uniforms.flipEnvMap.value = material.envMap.isCubeTexture ? - 1 : 1;
 
 					uniforms.reflectivity.value = material.reflectivity;

+ 0 - 4
src/renderers/WebGLRenderer.js

@@ -2058,10 +2058,6 @@ function WebGLRenderer( parameters ) {
 
 			uniforms.envMap.value = envMap;
 
-			// don't flip CubeTexture envMaps, flip everything else:
-			//  WebGLCubeRenderTarget will be flipped for backwards compatibility
-			//  WebGLCubeRenderTarget.texture will be flipped because it's a Texture and NOT a CubeTexture
-			// this check must be handled differently, or removed entirely, if WebGLCubeRenderTarget uses a CubeTexture in the future
 			uniforms.flipEnvMap.value = envMap.isCubeTexture ? - 1 : 1;
 
 			uniforms.reflectivity.value = material.reflectivity;