Sync god rays light source with dominant celestial light
This commit is contained in:
@@ -2088,11 +2088,15 @@ export class ViewportHost {
|
|||||||
|
|
||||||
this.ambientLight.color.set(displayedAmbientLight.colorHex);
|
this.ambientLight.color.set(displayedAmbientLight.colorHex);
|
||||||
this.ambientLight.intensity = displayedAmbientLight.intensity;
|
this.ambientLight.intensity = displayedAmbientLight.intensity;
|
||||||
this.currentCelestialShadowCaster =
|
const dominantCelestialLight = resolveDominantCelestialShadowCaster(
|
||||||
resolveDominantCelestialShadowCaster(
|
displayedSunLight,
|
||||||
displayedSunLight,
|
displayedMoonLight
|
||||||
displayedMoonLight
|
);
|
||||||
)?.key ?? null;
|
this.currentCelestialShadowCaster = dominantCelestialLight?.key ?? null;
|
||||||
|
syncScreenSpaceGodRaysLightSource(
|
||||||
|
this.godRaysLightSource,
|
||||||
|
dominantCelestialLight?.light ?? null
|
||||||
|
);
|
||||||
this.sunLight.color.set(displayedSunLight.colorHex);
|
this.sunLight.color.set(displayedSunLight.colorHex);
|
||||||
this.sunLight.intensity = displayedSunLight.intensity;
|
this.sunLight.intensity = displayedSunLight.intensity;
|
||||||
this.sunLight.position
|
this.sunLight.position
|
||||||
|
|||||||
Reference in New Issue
Block a user