mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added scaling to dimensions
This commit is contained in:
parent
4619c24165
commit
ad435e5b60
@ -81,11 +81,20 @@ namespace NewHorizons.Builder.Body
|
||||
|
||||
PairExit(config.linksTo, outerFogWarpVolume);
|
||||
|
||||
// Set the scale
|
||||
var scale = config.radius / BASE_DIMENSION_RADIUS;
|
||||
geometry.transform.localScale = Vector3.one * scale;
|
||||
outerFogWarpVolume._warpRadius *= scale;
|
||||
outerFogWarpVolume._exitRadius *= scale;
|
||||
|
||||
var fogGO = atmo.FindChild("FogSphere_Hub");
|
||||
var fog = fogGO.GetComponent<PlanetaryFogController>();
|
||||
fog._fogRadius *= scale;
|
||||
fog._fogDensity *= scale;
|
||||
|
||||
// Change fog color
|
||||
if (body.Config.Bramble.dimension.fogTint != null)
|
||||
{
|
||||
var fogGO = atmo.FindChild("FogSphere_Hub");
|
||||
var fog = fogGO.GetComponent<PlanetaryFogController>();
|
||||
fog.fogTint = body.Config.Bramble.dimension.fogTint.ToColor();
|
||||
}
|
||||
|
||||
|
||||
11
NewHorizons/External/Modules/BrambleModule.cs
vendored
11
NewHorizons/External/Modules/BrambleModule.cs
vendored
@ -28,7 +28,7 @@ namespace NewHorizons.External.Modules
|
||||
public class BrambleDimensionInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// The color of the fog inside this dimension. Leave blank for the default yellowish color
|
||||
/// The color of the fog inside this dimension. Leave blank for the default yellowish color: (113, 107, 81)
|
||||
/// </summary>
|
||||
public MColor fogTint;
|
||||
|
||||
@ -36,6 +36,11 @@ namespace NewHorizons.External.Modules
|
||||
/// The name of the *node* that the player is taken to when exiting this dimension.
|
||||
/// </summary>
|
||||
public string linksTo;
|
||||
|
||||
/// <summary>
|
||||
/// The internal radius (in meters) of the dimension. The default is 1705.
|
||||
/// </summary>
|
||||
[DefaultValue(1705f)] public float radius = 1705f;
|
||||
}
|
||||
|
||||
|
||||
@ -73,12 +78,12 @@ namespace NewHorizons.External.Modules
|
||||
[DefaultValue(false)] public bool isSeed = false;
|
||||
|
||||
/// <summary>
|
||||
/// The color of the fog inside the node. Leave blank for the default yellowish color (default: 131, 124, 105, 255)
|
||||
/// The color of the fog inside the node. Leave blank for the default yellowish color: (131, 124, 105, 255)
|
||||
/// </summary>
|
||||
public MColor fogTint;
|
||||
|
||||
/// <summary>
|
||||
/// The color of the shafts of light coming from the entrances to the node. Leave blank for the default yellowish color
|
||||
/// The color of the shafts of light coming from the entrances to the node. Leave blank for the default yellowish color: (131, 124, 105, 255)
|
||||
/// </summary>
|
||||
public MColor lightTint;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user