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 | 1042 | February 20, 2023 | |
Personal Project - Ray Tracing Distance Fields | 3 | 1173 | March 6, 2022 | |
Raymarching sphere center offset [math] | 2 | 44 | October 23, 2024 | |
Possible Bug, MeshStandard + MeshPhong | 12 | 1677 | November 16, 2021 | |
Specular aliasing with textures | 4 | 58 | October 25, 2024 |