Merge pull request #259 from xen-42/bramble-fog-alpha-fix

Ignore bramble fog alpha
This commit is contained in:
TerrificTrifid 2022-08-10 23:37:05 -05:00 committed by GitHub
commit 826dac84f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,7 @@ namespace NewHorizons.Builder.Body
if (config.fogTint != null)
{
var color = config.fogTint.ToColor();
color.a = 1f;
fog.fogTint = color;
outerFogWarpVolume._fogColor = color;
}

View File

@ -255,6 +255,7 @@ namespace NewHorizons.Builder.Props
Color fogTint, farFogTint, fogLightTint, lightTint, lightShaftTint, glowTint, fogOverrideTint;
farFogTint = config.fogTint != null ? config.fogTint.ToColor() : new Color(1f, 0.9608f, 0.851f, 1f);
farFogTint.a = 1f;
lightTint = config.lightTint != null ? config.lightTint.ToColor() : Color.white;
Color.RGBToHSV(farFogTint, out var fogH, out var fogS, out var fogV);