summaryrefslogtreecommitdiffstats
path: root/2ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-04 00:51:58 -0700
committeryum <yum.food.vr@gmail.com>2025-06-04 00:51:58 -0700
commitb76cd52014e7f5a1b6c19a8be66d39cd28199bdc (patch)
tree764cf31bbeccbd8d2c03cb19c0e36d7f18e15c91 /2ner.cginc
parent102f53a2402b204d1dc679078aaf8ba5765d97a7 (diff)
Add features to fog
Diffstat (limited to '2ner.cginc')
-rw-r--r--2ner.cginc6
1 files changed, 5 insertions, 1 deletions
diff --git a/2ner.cginc b/2ner.cginc
index bd5e743..284b2b2 100644
--- a/2ner.cginc
+++ b/2ner.cginc
@@ -189,7 +189,7 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
i.tangent = UnityObjectToWorldNormal(i.tangent);
i.binormal = UnityObjectToWorldNormal(i.binormal);
-#if defined(_RAYMARCHED_FOG)
+#if defined(_RAYMARCHED_FOG) && defined(FORWARD_BASE_PASS)
{
FogParams fog_params = {
_Raymarched_Fog_Steps,
@@ -199,6 +199,10 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
_Raymarched_Fog_Dithering_Noise_TexelSize,
_Raymarched_Fog_Density_Noise,
_Raymarched_Fog_Density_Noise_Scale,
+ _Raymarched_Fog_Velocity.xyz,
+ #if defined(_RAYMARCHED_FOG_DENSITY_EXPONENT)
+ _Raymarched_Fog_Density_Exponent,
+ #endif
#if defined(_RAYMARCHED_FOG_HEIGHT_DENSITY)
_Raymarched_Fog_Height_Density_Min,
_Raymarched_Fog_Height_Density_Max,