2
0
Эх сурвалжийг харах

WebGLPrograms: Simplified getTextureEncodingFromMap().

Mr.doob 9 жил өмнө
parent
commit
b1ebee188d

+ 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;