mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
AtmosNear and AtmosFar do not exist
This commit is contained in:
parent
115eade952
commit
16bd45b066
@ -16,8 +16,6 @@ namespace NewHorizons.Builder.Body
|
|||||||
private static Texture2D _colorOverTime;
|
private static Texture2D _colorOverTime;
|
||||||
private static readonly int ColorRamp = Shader.PropertyToID("_ColorRamp");
|
private static readonly int ColorRamp = Shader.PropertyToID("_ColorRamp");
|
||||||
private static readonly int SkyColor = Shader.PropertyToID("_SkyColor");
|
private static readonly int SkyColor = Shader.PropertyToID("_SkyColor");
|
||||||
private static readonly int AtmosFar = Shader.PropertyToID("_AtmosFar");
|
|
||||||
private static readonly int AtmosNear = Shader.PropertyToID("_AtmosNear");
|
|
||||||
private static readonly int Tint = Shader.PropertyToID("_Tint");
|
private static readonly int Tint = Shader.PropertyToID("_Tint");
|
||||||
private static readonly int Radius = Shader.PropertyToID("_Radius");
|
private static readonly int Radius = Shader.PropertyToID("_Radius");
|
||||||
private static readonly int InnerRadius = Shader.PropertyToID("_InnerRadius");
|
private static readonly int InnerRadius = Shader.PropertyToID("_InnerRadius");
|
||||||
@ -54,8 +52,6 @@ namespace NewHorizons.Builder.Body
|
|||||||
foreach (var lod in sunAtmosphere.transform.Find("AtmoSphere").GetComponentsInChildren<MeshRenderer>())
|
foreach (var lod in sunAtmosphere.transform.Find("AtmoSphere").GetComponentsInChildren<MeshRenderer>())
|
||||||
{
|
{
|
||||||
lod.material.SetColor(SkyColor, starModule.tint.ToColor());
|
lod.material.SetColor(SkyColor, starModule.tint.ToColor());
|
||||||
lod.material.SetColor(AtmosFar, starModule.tint.ToColor());
|
|
||||||
lod.material.SetColor(AtmosNear, starModule.tint.ToColor());
|
|
||||||
lod.material.SetFloat(InnerRadius, starModule.size);
|
lod.material.SetFloat(InnerRadius, starModule.size);
|
||||||
lod.material.SetFloat(OuterRadius, starModule.size * OuterRadiusRatio);
|
lod.material.SetFloat(OuterRadius, starModule.size * OuterRadiusRatio);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user