Skip to content

Commit 48c607f

Browse files
authored
WebGLRenderer: Fix shadow map uniform management. (#32590)
1 parent adc26e1 commit 48c607f

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

src/renderers/WebGLRenderer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,12 +2210,9 @@ class WebGLRenderer {
22102210
uniforms.pointLightShadows.value = lights.state.pointShadow;
22112211
uniforms.hemisphereLights.value = lights.state.hemi;
22122212

2213-
uniforms.directionalShadowMap.value = lights.state.directionalShadowMap;
22142213
uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix;
2215-
uniforms.spotShadowMap.value = lights.state.spotShadowMap;
22162214
uniforms.spotLightMatrix.value = lights.state.spotLightMatrix;
22172215
uniforms.spotLightMap.value = lights.state.spotLightMap;
2218-
uniforms.pointShadowMap.value = lights.state.pointShadowMap;
22192216
uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix;
22202217
// TODO (abelnation): add area lights shadow info to uniforms
22212218

src/renderers/shaders/UniformsLib.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ const UniformsLib = {
135135
shadowMapSize: {}
136136
} },
137137

138-
directionalShadowMap: { value: [] },
139138
directionalShadowMatrix: { value: [] },
140139

141140
spotLights: { value: [], properties: {
@@ -157,7 +156,6 @@ const UniformsLib = {
157156
} },
158157

159158
spotLightMap: { value: [] },
160-
spotShadowMap: { value: [] },
161159
spotLightMatrix: { value: [] },
162160

163161
pointLights: { value: [], properties: {
@@ -177,7 +175,6 @@ const UniformsLib = {
177175
shadowCameraFar: {}
178176
} },
179177

180-
pointShadowMap: { value: [] },
181178
pointShadowMatrix: { value: [] },
182179

183180
hemisphereLights: { value: [], properties: {

0 commit comments

Comments
 (0)