Pārlūkot izejas kodu

WebGLPrograms: Simplified getTextureEncodingFromMap().

Mr.doob 9 gadi atpakaļ
vecāks
revīzija
b1ebee188d
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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;