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 rid of pixelated edges of object | 2 | 1003 | February 20, 2023 | |
Personal Project - Ray Tracing Distance Fields | 3 | 1170 | March 6, 2022 | |
Raymarching sphere center offset [math] | 2 | 43 | October 23, 2024 | |
Possible Bug, MeshStandard + MeshPhong | 12 | 1671 | November 16, 2021 | |
Specular aliasing with textures | 4 | 38 | October 25, 2024 |