mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
clouds
This commit is contained in:
parent
f34fea66a4
commit
e7ecdd6328
@ -28,11 +28,19 @@ namespace NewHorizons.Builder.Atmosphere
|
||||
shockLayerRuleset._type = ShockLayerRuleset.ShockType.Atmospheric;
|
||||
shockLayerRuleset._radialCenter = airGO.transform;
|
||||
|
||||
var bottom = config.Base.surfaceSize;
|
||||
var top = config.Atmosphere.size;
|
||||
if (config.Atmosphere.clouds != null)
|
||||
{
|
||||
shockLayerRuleset._innerRadius = config.Atmosphere.clouds.innerCloudRadius;
|
||||
shockLayerRuleset._outerRadius = config.Atmosphere.clouds.outerCloudRadius;
|
||||
}
|
||||
else
|
||||
{
|
||||
var bottom = config.Base.surfaceSize;
|
||||
var top = config.Atmosphere.size;
|
||||
|
||||
shockLayerRuleset._innerRadius = (bottom + top) / 2f;
|
||||
shockLayerRuleset._outerRadius = top;
|
||||
shockLayerRuleset._innerRadius = (bottom + top) / 2f;
|
||||
shockLayerRuleset._outerRadius = top;
|
||||
}
|
||||
|
||||
if (config.Atmosphere.hasOxygen)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user