When the fractional part of a float fixes your shader

(crocidb.com)

42 points | by vinhnx 1 day ago

1 comments

  • earth-tattoo 2 hours ago
    Nice article. What a joy to read. Reminds me of what hacker news was until a few years ago!

    I haven't worked with opengl/shaders in a while, but was thinking about some algorithm I wrote a few years ago, while in shower yesterday. It brought back the memories of how difficult it was for me to first understand the whole concept of shaders. There's basically no main function, no for loops etc. Your shader is called for each pixel, for every frame. I was wondering how easy it would have been in today's world. I spent like 2 months on something that is just a prompt now.