diff options
| author | yum <yum.food.vr@gmail.com> | 2025-07-31 15:55:01 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-07-31 15:55:01 -0700 |
| commit | 4186d84cccf1d0db4ba413dba63baf87c87b79bb (patch) | |
| tree | 04445db49a057336fd1946ac48adf7204e43fb66 /decals.cginc | |
| parent | 5172e2eb9216b876b5b2719fad64b83e0d3a2a9f (diff) | |
add more gradient normals channels
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;
}
|
