浏览代码

WebGLPrograms: Simplified getTextureEncodingFromMap().

Mr.doob 9 年之前
父节点
当前提交
b1ebee188d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/renderers/webgl/WebGLPrograms.js

+ 2 - 2
src/renderers/webgl/WebGLPrograms.js

@@ -75,11 +75,11 @@ THREE.WebGLPrograms = function ( renderer, capabilities ) {
 
 
 			encoding = THREE.LinearEncoding;
 			encoding = THREE.LinearEncoding;
 
 
-		} else if ( map instanceof THREE.Texture || map instanceof THREE.CubeTexture ) {
+		} else if ( map instanceof THREE.Texture ) {
 
 
 			encoding = map.encoding;
 			encoding = map.encoding;
 
 
-		} else if ( map instanceof THREE.WebGLRenderTarget || map instanceof THREE.THREE.WebGLRenderTargetCube ) {
+		} else if ( map instanceof THREE.WebGLRenderTarget ) {
 
 
 			encoding = map.texture.encoding;
 			encoding = map.texture.encoding;