From 102f53a2402b204d1dc679078aaf8ba5765d97a7 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 3 Jun 2025 23:49:25 -0700 Subject: Add spatiotemporal dithering to fog --- 2ner.cginc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '2ner.cginc') 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; -- cgit v1.2.3