Explorar o código

WebGLPrograms: Simplified getTextureEncodingFromMap().

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
b1ebee188d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;