|
@@ -148,7 +148,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
instancingColor: object.isInstancedMesh === true && object.instanceColor !== null,
|
|
|
|
|
|
supportsVertexTextures: vertexTextures,
|
|
|
- outputEncoding: ( currentRenderTarget === null ) ? renderer.outputEncoding : LinearEncoding,
|
|
|
+ outputEncoding: ( currentRenderTarget === null ) ? renderer.outputEncoding : ( currentRenderTarget.isXRRenderTarget === true ? currentRenderTarget.encoding : LinearEncoding ),
|
|
|
map: !! material.map,
|
|
|
matcap: !! material.matcap,
|
|
|
envMap: !! envMap,
|