diff options
Diffstat (limited to 'decals.cginc')
| -rw-r--r-- | decals.cginc | 4 |
1 files changed, 0 insertions, 4 deletions
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;
}
|
