Make no shadow on clouds work better

This commit is contained in:
Nick J. Connors 2022-02-24 21:46:34 -05:00
parent 93a9d2c40f
commit 3ccc4338c0

View File

@ -75,6 +75,11 @@ namespace NewHorizons.Atmosphere
material.SetTexture("_CapTex", cap);
}
if(!atmo.ShadowsOnClouds)
{
cloudsTopGO.layer = LayerMask.NameToLayer("IgnoreSun");
}
RotateTransform topRT = cloudsTopGO.AddComponent<RotateTransform>();
topRT.SetValue("_localAxis", Vector3.up);