mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
cherry picked commit that made useBasicShader obsolete
This commit is contained in:
parent
12700fc932
commit
51a6077180
@ -176,7 +176,7 @@ namespace NewHorizons.Builder.Atmosphere
|
|||||||
Material[] prefabMaterials = atmo.clouds.cloudsPrefab == CloudPrefabType.GiantsDeep ? _gdCloudMaterials : _qmCloudMaterials;
|
Material[] prefabMaterials = atmo.clouds.cloudsPrefab == CloudPrefabType.GiantsDeep ? _gdCloudMaterials : _qmCloudMaterials;
|
||||||
var tempArray = new Material[2];
|
var tempArray = new Material[2];
|
||||||
|
|
||||||
if (atmo.clouds.useBasicCloudShader)
|
if (atmo.clouds.cloudsPrefab == CloudPrefabType.Basic)
|
||||||
{
|
{
|
||||||
var material = new Material(_sphereShader);
|
var material = new Material(_sphereShader);
|
||||||
if (atmo.clouds.unlit) material.renderQueue = 2550;
|
if (atmo.clouds.unlit) material.renderQueue = 2550;
|
||||||
|
|||||||
4
NewHorizons/External/Configs/PlanetConfig.cs
vendored
4
NewHorizons/External/Configs/PlanetConfig.cs
vendored
@ -235,6 +235,10 @@ namespace NewHorizons.External.Configs
|
|||||||
// Former is obsolete, latter is to validate
|
// Former is obsolete, latter is to validate
|
||||||
if (Atmosphere.hasAtmosphere || Atmosphere.atmosphereTint != null)
|
if (Atmosphere.hasAtmosphere || Atmosphere.atmosphereTint != null)
|
||||||
Atmosphere.useAtmosphereShader = true;
|
Atmosphere.useAtmosphereShader = true;
|
||||||
|
|
||||||
|
// useBasicCloudShader is obsolete
|
||||||
|
if (Atmosphere.clouds != null && Atmosphere.clouds.useBasicCloudShader)
|
||||||
|
Atmosphere.clouds.cloudsPrefab = CloudPrefabType.Basic;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Props?.tornados != null)
|
if (Props?.tornados != null)
|
||||||
|
|||||||
10
NewHorizons/External/Modules/AtmosphereModule.cs
vendored
10
NewHorizons/External/Modules/AtmosphereModule.cs
vendored
@ -28,6 +28,8 @@ namespace NewHorizons.External.Modules
|
|||||||
[EnumMember(Value = @"giantsDeep")] GiantsDeep = 0,
|
[EnumMember(Value = @"giantsDeep")] GiantsDeep = 0,
|
||||||
|
|
||||||
[EnumMember(Value = @"quantumMoon")] QuantumMoon = 1,
|
[EnumMember(Value = @"quantumMoon")] QuantumMoon = 1,
|
||||||
|
|
||||||
|
[EnumMember(Value = @"basic")] Basic = 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonObject]
|
[JsonObject]
|
||||||
@ -152,10 +154,18 @@ namespace NewHorizons.External.Modules
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public bool unlit;
|
public bool unlit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#region Obsolete
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set to `false` in order to use Giant's Deep's shader. Set to `true` to just apply the cloud texture as is.
|
/// Set to `false` in order to use Giant's Deep's shader. Set to `true` to just apply the cloud texture as is.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[Obsolete("useBasicCloudShader is deprecated, please use cloudsPrefab=\"basic\" instead")]
|
||||||
public bool useBasicCloudShader;
|
public bool useBasicCloudShader;
|
||||||
|
|
||||||
|
#endregion Obsolete
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user