mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
fixed screen fog color when exiting dimensions
This commit is contained in:
parent
134c4e668d
commit
3abaf1e37a
@ -238,7 +238,9 @@ namespace NewHorizons.Builder.Body
|
||||
// Change fog color
|
||||
if (body.Config.Bramble.dimension.fogTint != null)
|
||||
{
|
||||
fog.fogTint = body.Config.Bramble.dimension.fogTint.ToColor();
|
||||
var color = body.Config.Bramble.dimension.fogTint.ToColor();
|
||||
fog.fogTint = color;
|
||||
outerFogWarpVolume._fogColor = color;
|
||||
}
|
||||
|
||||
// Set up repel volume to only contain this dimension
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
using NewHorizons.Builder.Body;
|
||||
using NewHorizons.Components;
|
||||
using NewHorizons.Handlers;
|
||||
using NewHorizons.Utility;
|
||||
using OWML.Common;
|
||||
@ -233,7 +234,7 @@ namespace NewHorizons.Builder.Props
|
||||
fogEffectRuleset._material = GameObject.Find("DB_PioneerDimension_Body/Sector_PioneerDimension").GetComponent<EffectRuleset>()._material;
|
||||
}
|
||||
|
||||
//TODO: replace InnerFogWarpVolume with NHInnerFogWarpVolume, which overrides GetFogDensity to account for scale
|
||||
//TODO: replace InnerFogWarpVolume with NHInnerFogWarpVolume, which overrides GetFogDensity to account for scale (this will fix the issue with screen fog caused by scaled down nodes)
|
||||
|
||||
// Set the scale
|
||||
brambleNode.transform.localScale = Vector3.one * config.scale;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user