Skip to content

Commit

Permalink
fixes the lack of setup for the default ambientLight value (#144)
Browse files Browse the repository at this point in the history
* fixes the lack of setup for the default ambientLight value

* removes unecessary branching for code cleanliness
  • Loading branch information
TheCodeTherapy authored Jun 11, 2024
1 parent 8316a54 commit 5a49f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/3d-web-client-core/src/rendering/composer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class Composer {
if (typeof this.environmentConfiguration?.ambientLight?.intensity === "number") {
envValues.ambientLight.ambientLightIntensity =
this.environmentConfiguration.ambientLight.intensity;
this.setAmbientLight();
}
this.setAmbientLight();
}
}

0 comments on commit 5a49f55

Please sign in to comment.