News for hackers. Stuff that matters.
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);
Re:Interactive Intro to Shaders by superMayo on Friday October 27, 2023 @07:17AM (#38037080)
Didn't know that, thanks for the tip!