|
1 | | -import { BackSide, DoubleSide, CubeUVReflectionMapping, ObjectSpaceNormalMap, TangentSpaceNormalMap, NoToneMapping, LinearEncoding, sRGBEncoding, NormalBlending } from '../../constants.js'; |
| 1 | +import { BackSide, DoubleSide, CubeUVReflectionMapping, ObjectSpaceNormalMap, TangentSpaceNormalMap, NoToneMapping, LinearEncoding, NormalBlending } from '../../constants.js'; |
2 | 2 | import { Layers } from '../../core/Layers.js'; |
3 | 3 | import { WebGLProgram } from './WebGLProgram.js'; |
4 | 4 | import { WebGLShaderCache } from './WebGLShaderCache.js'; |
@@ -193,8 +193,6 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities |
193 | 193 | normalMapObjectSpace: HAS_NORMALMAP && material.normalMapType === ObjectSpaceNormalMap, |
194 | 194 | normalMapTangentSpace: HAS_NORMALMAP && material.normalMapType === TangentSpaceNormalMap, |
195 | 195 |
|
196 | | - decodeVideoTexture: HAS_MAP && ( material.map.isVideoTexture === true ) && ( material.map.encoding === sRGBEncoding ), |
197 | | - |
198 | 196 | metalnessMap: HAS_METALNESSMAP, |
199 | 197 | roughnessMap: HAS_ROUGHNESSMAP, |
200 | 198 |
|
@@ -499,12 +497,10 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities |
499 | 497 | _programLayers.enable( 15 ); |
500 | 498 | if ( parameters.sheen ) |
501 | 499 | _programLayers.enable( 16 ); |
502 | | - if ( parameters.decodeVideoTexture ) |
503 | | - _programLayers.enable( 17 ); |
504 | 500 | if ( parameters.opaque ) |
505 | | - _programLayers.enable( 18 ); |
| 501 | + _programLayers.enable( 17 ); |
506 | 502 | if ( parameters.pointsUvs ) |
507 | | - _programLayers.enable( 19 ); |
| 503 | + _programLayers.enable( 18 ); |
508 | 504 |
|
509 | 505 | array.push( _programLayers.mask ); |
510 | 506 |
|
|
0 commit comments