diff options
| author | yum <yum.food.vr@gmail.com> | 2026-03-30 16:01:43 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-03-30 16:53:13 -0700 |
| commit | 789ffb5a24550e24b540484a1d84b82cddc3a571 (patch) | |
| tree | 72e7d35f1714f9c26cd35a2a66592a34fbf380a7 | |
| parent | d4b85ad2704fe9144c36856f00d4c1aeeddf93f4 (diff) | |
Glitter: hacks for 1 neighbor sampling
| -rw-r--r-- | glitter.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glitter.cginc b/glitter.cginc index e6c5cbf..908c1ab 100644 --- a/glitter.cginc +++ b/glitter.cginc @@ -214,7 +214,7 @@ float D_Kemppinen(float3 h, float alpha, float glint_alpha, float2 uv, * normal(sigma_s, x_s - g_s) / N; // This is hacky nonsense intended to improve the 1-sampling case. Original // code is commented out below. - D_filter += sqrt(w) * 2; + D_filter += w < 1 ? sqrt(w) * 2 : w; //D_filter += w; if (w > best_weight) { best_weight = w; |
