Apply celestial light horizon fading logic to day/night state
This commit is contained in:
@@ -993,7 +993,12 @@ export function resolveRuntimeDayNightWorldState(
|
|||||||
timeOfDay.dusk.lightIntensityFactor,
|
timeOfDay.dusk.lightIntensityFactor,
|
||||||
0,
|
0,
|
||||||
phaseWeights
|
phaseWeights
|
||||||
) * smoothstep(-0.16, 0.18, sunDirection.y);
|
) *
|
||||||
|
smoothstep(
|
||||||
|
CELESTIAL_LIGHT_HORIZON_FADE_START,
|
||||||
|
CELESTIAL_LIGHT_HORIZON_FADE_END,
|
||||||
|
sunDirection.y
|
||||||
|
);
|
||||||
const ambientFactor = blendScalarByWeights(
|
const ambientFactor = blendScalarByWeights(
|
||||||
1,
|
1,
|
||||||
timeOfDay.dawn.ambientIntensityFactor,
|
timeOfDay.dawn.ambientIntensityFactor,
|
||||||
|
|||||||
Reference in New Issue
Block a user