|
@@ -19010,7 +19010,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
|
|
|
instancingColor: object.isInstancedMesh === true && object.instanceColor !== null,
|
|
|
|
|
|
supportsVertexTextures: vertexTextures,
|
|
|
- outputEncoding: ( currentRenderTarget === null ) ? renderer.outputEncoding : ( currentRenderTarget.isXRRenderTarget === true ? currentRenderTarget.encoding : LinearEncoding ),
|
|
|
+ outputEncoding: ( currentRenderTarget === null ) ? renderer.outputEncoding : ( currentRenderTarget.isXRRenderTarget === true ? currentRenderTarget.texture.encoding : LinearEncoding ),
|
|
|
map: !! material.map,
|
|
|
matcap: !! material.matcap,
|
|
|
envMap: !! envMap,
|
|
@@ -27233,7 +27233,7 @@ function WebGLRenderer( parameters = {} ) {
|
|
|
|
|
|
const fog = scene.fog;
|
|
|
const environment = material.isMeshStandardMaterial ? scene.environment : null;
|
|
|
- const encoding = ( _currentRenderTarget === null ) ? _this.outputEncoding : ( _currentRenderTarget.isXRRenderTarget === true ? _currentRenderTarget.encoding : LinearEncoding );
|
|
|
+ const encoding = ( _currentRenderTarget === null ) ? _this.outputEncoding : ( _currentRenderTarget.isXRRenderTarget === true ? _currentRenderTarget.texture.encoding : LinearEncoding );
|
|
|
const envMap = ( material.isMeshStandardMaterial ? cubeuvmaps : cubemaps ).get( material.envMap || environment );
|
|
|
const vertexAlphas = material.vertexColors === true && !! geometry.attributes.color && geometry.attributes.color.itemSize === 4;
|
|
|
const vertexTangents = !! material.normalMap && !! geometry.attributes.tangent;
|