Browse Source

WebGLPrograms: Simplified getTextureEncodingFromMap().

Mr.doob 9 years ago
parent
commit
b1ebee188d
1 changed files with 2 additions and 2 deletions
  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;
 
-		} else if ( map instanceof THREE.Texture || map instanceof THREE.CubeTexture ) {
+		} else if ( map instanceof THREE.Texture ) {
 
 			encoding = map.encoding;
 
-		} else if ( map instanceof THREE.WebGLRenderTarget || map instanceof THREE.THREE.WebGLRenderTargetCube ) {
+		} else if ( map instanceof THREE.WebGLRenderTarget ) {
 
 			encoding = map.texture.encoding;