summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-21 17:19:27 -0700
committeryum <yum.food.vr@gmail.com>2024-11-02 18:11:24 -0700
commit76af070567daeb845cabbf9a414cf487b88c12f9 (patch)
tree259ea210856d0ec7690cc554ff5becd9d78e193e
parentbce47d425d180458b449578a770eb7a63dd7e188 (diff)
Step size no longer depends on density
-rw-r--r--fog.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/fog.cginc b/fog.cginc
index 6b6118a..65f9979 100644
--- a/fog.cginc
+++ b/fog.cginc
@@ -143,7 +143,7 @@ Fog00PBR getFog00(v2f i) {
// Factor of 10 on `screen_uv*10` eliminates visible striping artifact that
// is visible with no factor.
- float step_size = rcp(_Gimmick_Fog_00_Density) * _Gimmick_Fog_00_Step_Size_Factor;
+ float step_size = _Gimmick_Fog_00_Step_Size_Factor;
step_size = clamp(step_size, 1E-2, 10);
int2 screen_uv_round = floor(screen_uv * _ScreenParams.xy);
float dither_seed = rand2(float2(screen_uv_round.x, screen_uv_round.y)*.001);