Skip to content

Commit

Permalink
[Fix] Fix to lightmapping not baking shadows on the following runs (#…
Browse files Browse the repository at this point in the history
…7022)

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
  • Loading branch information
mvaligursky and Martin Valigursky authored Oct 10, 2024
1 parent ef41e1b commit 79800b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/framework/lightmapper/bake-light.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BakeLight {
this.intensity = this.light.intensity;
this.rotation = this.light._node.getLocalRotation().clone();
this.numCascades = this.light.numCascades;
this.castShadows = this.light.castShadows;
this.castShadows = this.light._castShadows;
}

restore() {
Expand All @@ -56,7 +56,7 @@ class BakeLight {
light.intensity = this.intensity;
light._node.setLocalRotation(this.rotation);
light.numCascades = this.numCascades;
light.castShadows = this.castShadows;
light._castShadows = this.castShadows;
}

startBake() {
Expand Down

0 comments on commit 79800b4

Please sign in to comment.