Re:Interactive Intro to Shaders
by Jasper_ on Friday October 27, 2023 @02:01AM
(#38035172)
You can improve your antialiasing, assuming you're willing to use the well-supported OES_standard_derivatives extension (or WebGL 2). Instead of doing smoothstep(0.0f, 0.01f, dist); with the constants picks sort of at random, instead do smoothstep(fwidth(dist), -fwidth(dist), dist);
[ Parent
| on HN ]