‹ BackHN Continuity

Thread

When the fractional part of a float fixes your shader

111 points · 19 comments · vinhnx

  1. earth-tattoo · · focus · HN ↗
    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.

    1. onion2k · · focus · HN ↗
      Claude is good[1] at writing shaders. It can take a description and turn it into working GLSL code for relatively complex effects.

      [1] Better than me anyway.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.