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 | |
---|---|---|---|---|
Triangulation of SDFs | 7 | 175 | May 4, 2025 | |
SDFs in the scene - raymarching | 31 | 564 | March 20, 2025 | |
Witch's Swill [SDF, MeshStandardMaterial] | 3 | 139 | February 19, 2025 | |
Is there a library for Javascript distance functions? | 10 | 175 | April 5, 2025 | |
Ray-traced shadows for the poor | 1 | 152 | May 31, 2025 |