mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
better
This commit is contained in:
parent
76cca07f2d
commit
8a17c693e4
@ -59,9 +59,10 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
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());
|
||||
// maybe dont tint image since this overrides? oh well
|
||||
if (atmo.fogRampPath != null) colorRampTexture = ImageUtilities.GetTexture(mod, atmo.fogRampPath, wrap: false);
|
||||
var colorRampTexture =
|
||||
atmo.fogRampPath != null ? ImageUtilities.GetTexture(mod, atmo.fogRampPath) :
|
||||
atmo.fogTint != null ? ImageUtilities.TintImage(_ramp, atmo.fogTint.ToColor()) :
|
||||
_ramp;
|
||||
PFC.fogColorRampTexture = colorRampTexture;
|
||||
PFC.fogColorRampIntensity = 1f;
|
||||
if (atmo.fogTint != null)
|
||||
@ -97,9 +98,10 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
MR.materials = _dbImpostorMaterials;
|
||||
MR.allowOcclusionWhenDynamic = true;
|
||||
|
||||
var colorRampTexture = atmo.fogTint == null ? _ramp : ImageUtilities.TintImage(_ramp, atmo.fogTint.ToColor());
|
||||
// maybe dont tint image since this overrides? oh well
|
||||
if (atmo.fogRampPath != null) colorRampTexture = ImageUtilities.GetTexture(mod, atmo.fogRampPath, wrap: false);
|
||||
var colorRampTexture =
|
||||
atmo.fogRampPath != null ? ImageUtilities.GetTexture(mod, atmo.fogRampPath) :
|
||||
atmo.fogTint != null ? ImageUtilities.TintImage(_ramp, atmo.fogTint.ToColor()) :
|
||||
_ramp;
|
||||
if (atmo.fogTint != null)
|
||||
{
|
||||
MR.material.SetColor(Tint, atmo.fogTint.ToColor());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user