mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Just use this instead
This commit is contained in:
parent
7526e52366
commit
bb1f20c822
@ -73,7 +73,7 @@ namespace NewHorizons.Components
|
||||
foreach (var (planet, material) in AtmosphereBuilder.Skys)
|
||||
{
|
||||
var sqrDist = (planet.transform.position - _activeStar.transform.position).sqrMagnitude;
|
||||
var intensity = Mathf.Min(_activeStar.Light.intensity / (sqrDist / hearthSunDistanceSqr), 1f);
|
||||
var intensity = Mathf.Min(_activeStar.Intensity / (sqrDist / hearthSunDistanceSqr), 1f);
|
||||
|
||||
material.SetFloat(SunIntensity, intensity);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user