From 4186d84cccf1d0db4ba413dba63baf87c87b79bb Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 31 Jul 2025 15:55:01 -0700 Subject: add more gradient normals channels --- decals.cginc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'decals.cginc') diff --git a/decals.cginc b/decals.cginc index f396b69..8311b4a 100644 --- a/decals.cginc +++ b/decals.cginc @@ -100,12 +100,8 @@ float4 getDecalColor(DecalParams params, float2 uv) { // The fwidth+smoothstep anti-aliases the glyph outline. See // "Noise is Beautiful" by Gustavson around page 34 for an // explanation of this trick. -#if 1 float step_wd = fwidth(sd) * 0.5; sd = smoothstep(params.sdf_threshold - step_wd, params.sdf_threshold + step_wd, sd); -#else - sd = step(params.sdf_threshold, sd); -#endif return params.color * sd; } -- cgit v1.2.3