mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
check null fog man
This commit is contained in:
parent
19c5daaba6
commit
a119afcfce
@ -44,9 +44,12 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
var colorRampTexture = atmo.fogTint == null ? _ramp : ImageUtilities.TintImage(_ramp, atmo.fogTint.ToColor());
|
||||
PFC.fogColorRampTexture = colorRampTexture;
|
||||
PFC.fogColorRampIntensity = 1f;
|
||||
PFC.fogTint = atmo.fogTint.ToColor();
|
||||
if (atmo.fogTint != null)
|
||||
{
|
||||
PFC.fogTint = atmo.fogTint.ToColor();
|
||||
|
||||
MR.material.SetColor(Tint, atmo.fogTint.ToColor());
|
||||
MR.material.SetColor(Tint, atmo.fogTint.ToColor());
|
||||
}
|
||||
MR.material.SetFloat(Radius, atmo.fogSize);
|
||||
MR.material.SetFloat(Density, atmo.fogDensity);
|
||||
MR.material.SetFloat(DensityExponent, 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user