From bb1f20c8221c1106810fb891f2656e48b28f51d5 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Fri, 19 Aug 2022 16:46:03 -0400 Subject: [PATCH] Just use this instead --- NewHorizons/Components/StarLightController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Components/StarLightController.cs b/NewHorizons/Components/StarLightController.cs index a5e263d8..55a79074 100644 --- a/NewHorizons/Components/StarLightController.cs +++ b/NewHorizons/Components/StarLightController.cs @@ -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); }