From 123b59b909db3b2bf28c137d9af04148c2ccb25f Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Thu, 14 Jul 2022 21:35:51 -0400 Subject: [PATCH] Kablooey --- NewHorizons/Builder/Atmosphere/FogBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Builder/Atmosphere/FogBuilder.cs b/NewHorizons/Builder/Atmosphere/FogBuilder.cs index 907b358a..cae0d014 100644 --- a/NewHorizons/Builder/Atmosphere/FogBuilder.cs +++ b/NewHorizons/Builder/Atmosphere/FogBuilder.cs @@ -38,6 +38,7 @@ namespace NewHorizons.Builder.Atmosphere PFC._fogImpostor = MR; PFC.fogLookupTexture = dbPlanetaryFogController.fogLookupTexture; PFC.fogRadius = atmo.fogSize; + PFC.lodFadeDistance = PFC.fogRadius * 0.5f; PFC.fogDensity = atmo.fogDensity; PFC.fogExponent = 1f; var colorRampTexture = atmo.fogTint == null ? _ramp : ImageUtilities.TintImage(_ramp, atmo.fogTint.ToColor()); @@ -45,7 +46,6 @@ namespace NewHorizons.Builder.Atmosphere PFC.fogColorRampIntensity = 1f; PFC.fogTint = atmo.fogTint.ToColor(); - MR.material.SetTexture(FogTexture, dbPlanetaryFogController.fogLookupTexture); MR.material.SetColor(Tint, atmo.fogTint.ToColor()); MR.material.SetFloat(Radius, atmo.fogSize); MR.material.SetFloat(Density, atmo.fogDensity);