diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-03 23:49:25 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-03 23:49:25 -0700 |
| commit | 102f53a2402b204d1dc679078aaf8ba5765d97a7 (patch) | |
| tree | cf977a756dbb460a431ba669761eaf06ccc44c5b /2ner.cginc | |
| parent | e57cfb120534ede4005f538ddd158b9dc5061d3c (diff) | |
Add spatiotemporal dithering to fog
Diffstat (limited to '2ner.cginc')
| -rw-r--r-- | 2ner.cginc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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;
|
