Painting with math: A gentle study of raymarching
blog.maximeheckel.com
blog.maximeheckel.com
https://shaderpark.com/sculpture/-NeEtQ1JEccER6MjPQzq
It's not meant to be a replacement for glsl, just to open up some cool new possibilities!
https://shaderpark.com/sculpture/-Nc57ho13qXl3G7fQ2wy
There are some limitations but again the point is just to explore new possibilities!
https://shaderpark.com/sculpture/-M_TY8dwxuyliltrFjP2
No SDFs involved in this one.
You can even use recursion (with limitations of course)!
https://shaderpark.com/sculpture/-N8ntgGcPiXK5igOagRW
At the same time, many more people know javascript than shader languages, so this makes it easier for beginners to get their hands dirty and can be a gateway to gpu programming. So there are benefits for both novices and advanced users! There are pitfalls to this approach too of course and it certainly isn't a replacement for glsl, but the purpose is simply to explore 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