summaryrefslogtreecommitdiffstats
path: root/2ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-06-03 23:49:25 -0700
committeryum <yum.food.vr@gmail.com>2025-06-03 23:49:25 -0700
commit102f53a2402b204d1dc679078aaf8ba5765d97a7 (patch)
treecf977a756dbb460a431ba669761eaf06ccc44c5b /2ner.cginc
parente57cfb120534ede4005f538ddd158b9dc5061d3c (diff)
Add spatiotemporal dithering to fog
Diffstat (limited to '2ner.cginc')
-rw-r--r--2ner.cginc8
1 files changed, 7 insertions, 1 deletions
diff --git a/2ner.cginc b/2ner.cginc
index d78e3db..bd5e743 100644
--- a/2ner.cginc
+++ b/2ner.cginc
@@ -196,8 +196,14 @@ float4 frag(v2f i, uint facing : SV_IsFrontFace
_Raymarched_Fog_Density,
_Raymarched_Fog_Y_Cutoff,
_Raymarched_Fog_Dithering_Noise,
+ _Raymarched_Fog_Dithering_Noise_TexelSize,
_Raymarched_Fog_Density_Noise,
- _Raymarched_Fog_Density_Noise_Scale
+ _Raymarched_Fog_Density_Noise_Scale,
+ #if defined(_RAYMARCHED_FOG_HEIGHT_DENSITY)
+ _Raymarched_Fog_Height_Density_Min,
+ _Raymarched_Fog_Height_Density_Max,
+ _Raymarched_Fog_Height_Density_Power,
+ #endif
};
FogResult fog_result = raymarched_fog(i, fog_params);
depth = fog_result.depth;