提交 b1ebee18 编写于 作者: M Mr.doob

WebGLPrograms: Simplified getTextureEncodingFromMap().

上级 24d32ead
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册