We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lightShadowMatrix()
renderer.shadowMap.enabled
false
1 parent f981e90 commit de5d8aeCopy full SHA for de5d8ae
src/nodes/accessors/Lights.js
@@ -30,9 +30,9 @@ export function lightShadowMatrix( light ) {
30
31
const data = getLightData( light );
32
33
- return data.shadowMatrix || ( data.shadowMatrix = uniform( 'mat4' ).setGroup( renderGroup ).onRenderUpdate( () => {
+ return data.shadowMatrix || ( data.shadowMatrix = uniform( 'mat4' ).setGroup( renderGroup ).onRenderUpdate( ( frame ) => {
34
35
- if ( light.castShadow !== true ) {
+ if ( light.castShadow !== true || frame.renderer.shadowMap.enabled === false ) {
36
37
light.shadow.updateMatrices( light );
38
0 commit comments