mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Oops
This commit is contained in:
parent
53ef89540a
commit
917380ee5e
@ -77,7 +77,7 @@ namespace NewHorizons.Components
|
||||
var shader = atmo.Item2;
|
||||
|
||||
var sqrDist = (planet.transform.position - _activeStar.transform.position).sqrMagnitude;
|
||||
var intensity = Mathf.Max(_activeStar.Light.intensity / (sqrDist / hearthSunDistanceSqr), 1f);
|
||||
var intensity = Mathf.Min(_activeStar.Light.intensity / (sqrDist / hearthSunDistanceSqr), 1f);
|
||||
|
||||
shader.SetFloat(SunIntensity, intensity);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user