119 points · by ibobev · 3y ago · 19 comments
https://shaderpark.com/sculpture/-NeEtQ1JEccER6MjPQzq
It's not meant to be a replacement for glsl, just to open up some cool new possibilities!
I've been watching a playlist which is making shader programming click for me: https://www.youtube.com/watch?v=u5HAYVHsasc&list=PLGmrMu-Iwb... "The Art of Code" channel, "ShaderToy Tutorials" playlist. I think if you know some geometry/trigonometry, once you wrap your head around writing a function that maps any pixel to a color (and how you add or multiply colors, and think in vectors), it starts to get fun. If you want a recommendation, I'd start with videos 30 and 37 in the playlist for a cool demo, then the 1st 4 videos (note: the video quality improves in later videos), then 10 and 11, then RayMarching starts in 22-24 and 29. (Many other videos in that channel are great for shader programming techniques, too.)
If the article looks too verbose, be sure to check out, as the author cites, Inigo Quilez's videos
Painting a Landscape with Maths - https://www.youtube.com/watch?v=BFld4EBO2RE
Painting a Character with Maths - https://www.youtube.com/watch?v=8--5LwHRhjk
Bonus:
Painting with Maths in Google Sheets - https://www.youtube.com/watch?v=JnCkF62gkOY