Skip to content

Commit

Permalink
support to dynamic light.castShadow
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Jul 23, 2024
1 parent 1e49ad0 commit 4b433dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/nodes/lighting/AnalyticLightNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,7 @@ class AnalyticLightNode extends LightingNode {

updateBefore( frame ) {

const { light } = this;

if ( light.castShadow ) this.updateShadow( frame );
this.updateShadow( frame );

}

Expand Down
2 changes: 1 addition & 1 deletion src/renderers/common/nodes/Nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Nodes extends DataMap {

const cacheKey = [];

if ( lightsNode ) cacheKey.push( lightsNode.getCacheKey() );
if ( lightsNode ) cacheKey.push( lightsNode.getCacheKey( true ) );
if ( environmentNode ) cacheKey.push( environmentNode.getCacheKey() );
if ( fogNode ) cacheKey.push( fogNode.getCacheKey() );

Expand Down

0 comments on commit 4b433dc

Please sign in to comment.