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);
|
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
|
// Change fog color
|
||||||
if (body.Config.Bramble.dimension.fogTint != null)
|
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();
|
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
|
public class BrambleDimensionInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public MColor fogTint;
|
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.
|
/// The name of the *node* that the player is taken to when exiting this dimension.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string linksTo;
|
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;
|
[DefaultValue(false)] public bool isSeed = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public MColor fogTint;
|
public MColor fogTint;
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
public MColor lightTint;
|
public MColor lightTint;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user