I was trying smooth the edge using fwidth and smoothstep for anti alias and it obviously works for particles but I just don’t how to get the distance to the edge of the sdf shape in this case a sphere radius of 1. I found some blog posts about it but I think it just comes down to storing a variable for distance to the edge then we can smooth or clamp the edges.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to get sharp edge with particles | 9 | 429 | June 20, 2024 | |
How to draw smoothed edge ellipse in shader? | 7 | 106 | June 10, 2025 | |
Jagged edges on shader material | 6 | 128 | December 4, 2024 | |
Shader to create an offset, inward-growing stroke? | 25 | 8190 | October 11, 2019 | |
Edges getting pixelated | 0 | 603 | October 5, 2021 |