summaryrefslogtreecommitdiff
path: root/Thronefall_1_57/Decompile/FlatKit/FogSettings.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2024-05-19 17:03:57 +0800
committerchai <215380520@qq.com>2024-05-19 17:03:57 +0800
commitcf58771365b5953c6eac548b172aae880d1f0acd (patch)
treea49757a4b5c447cbf877584d482367a6bfe33b10 /Thronefall_1_57/Decompile/FlatKit/FogSettings.cs
parenteed315deae356ddfb17f28305e7cde6cdfc43313 (diff)
* rename
Diffstat (limited to 'Thronefall_1_57/Decompile/FlatKit/FogSettings.cs')
-rw-r--r--Thronefall_1_57/Decompile/FlatKit/FogSettings.cs59
1 files changed, 0 insertions, 59 deletions
diff --git a/Thronefall_1_57/Decompile/FlatKit/FogSettings.cs b/Thronefall_1_57/Decompile/FlatKit/FogSettings.cs
deleted file mode 100644
index 60e5eb0..0000000
--- a/Thronefall_1_57/Decompile/FlatKit/FogSettings.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-using UnityEngine;
-using UnityEngine.Rendering.Universal;
-
-namespace FlatKit;
-
-[CreateAssetMenu(fileName = "FogSettings", menuName = "FlatKit/Fog Settings")]
-public class FogSettings : ScriptableObject
-{
- [Header("Distance Fog")]
- public bool useDistance = true;
-
- public Gradient distanceGradient;
-
- public float near;
-
- public float far = 100f;
-
- [Range(0f, 1f)]
- public float distanceFogIntensity = 1f;
-
- public bool useDistanceFogOnSky;
-
- [Header("Height Fog")]
- [Space]
- public bool useHeight;
-
- public Gradient heightGradient;
-
- public float low;
-
- public float high = 10f;
-
- [Range(0f, 1f)]
- public float heightFogIntensity = 1f;
-
- public bool useHeightFogOnSky;
-
- [Header("Blending")]
- [Space]
- [Range(0f, 1f)]
- public float distanceHeightBlend = 0.5f;
-
- [Header("Advanced settings")]
- [Space]
- [Tooltip("The render stage at which the effect is applied. To exclude transparent objects, like water or UI elements, set this to \"Before Transparent\".")]
- public RenderPassEvent renderEvent = RenderPassEvent.BeforeRenderingPostProcessing;
-
- private void OnValidate()
- {
- if (low > high)
- {
- Debug.LogWarning("[FlatKit] Fog Height configuration error: 'Low' must not be greater than 'High'");
- }
- if (near > far)
- {
- Debug.LogWarning("[FlatKit] Fog Distance configuration error: 'Near' must not be greater than 'Far'");
- }
- }
-}