|
@@ -1,4 +1,4 @@
|
|
|
-import { BackSide, DoubleSide, CubeUVRefractionMapping, CubeUVReflectionMapping, ObjectSpaceNormalMap, TangentSpaceNormalMap, NoToneMapping, sRGBEncoding } from '../../constants.js';
|
|
|
+import { BackSide, DoubleSide, CubeUVRefractionMapping, CubeUVReflectionMapping, ObjectSpaceNormalMap, TangentSpaceNormalMap, NoToneMapping, LinearEncoding, sRGBEncoding } from '../../constants.js';
|
|
|
import { Layers } from '../../core/Layers.js';
|
|
|
import { WebGLProgram } from './WebGLProgram.js';
|
|
|
import { WebGLShaderCache } from './WebGLShaderCache.js';
|
|
@@ -148,7 +148,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
instancingColor: object.isInstancedMesh === true && object.instanceColor !== null,
|
|
|
|
|
|
supportsVertexTextures: vertexTextures,
|
|
|
- outputEncoding: ( currentRenderTarget !== null ) ? currentRenderTarget.texture.encoding : renderer.outputEncoding,
|
|
|
+ outputEncoding: ( currentRenderTarget === null ) ? renderer.outputEncoding : LinearEncoding,
|
|
|
map: !! material.map,
|
|
|
matcap: !! material.matcap,
|
|
|
envMap: !! envMap,
|