mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix foglight data
This commit is contained in:
parent
e2f7d8a05b
commit
3ca471fa93
@ -334,6 +334,24 @@ namespace NewHorizons.Builder.Props
|
|||||||
|
|
||||||
SetNodeColors(brambleNode, fogTint, farFogTint, fogLightTint, lightTint, lightShaftTint, glowTint, fogOverrideTint);
|
SetNodeColors(brambleNode, fogTint, farFogTint, fogLightTint, lightTint, lightShaftTint, glowTint, fogOverrideTint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Redo the foglight data after everything is colored
|
||||||
|
if (fogLight._linkedFogLights != null)
|
||||||
|
{
|
||||||
|
Delay.FireOnNextUpdate(() =>
|
||||||
|
{
|
||||||
|
FogLightManager fogLightManager = Locator.GetFogLightManager();
|
||||||
|
fogLight._linkedLightData.Clear();
|
||||||
|
for (int i = 0; i < fogLight._linkedFogLights.Count; i++)
|
||||||
|
{
|
||||||
|
FogLight.LightData lightData = new FogLight.LightData();
|
||||||
|
lightData.color = fogLight._linkedFogLights[i].GetTint();
|
||||||
|
lightData.maxAlpha = fogLight._linkedFogLights[i]._maxAlpha;
|
||||||
|
fogLight._linkedLightData.Add(lightData);
|
||||||
|
fogLightManager.RegisterLightData(lightData);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Set up warps
|
// Set up warps
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user