logoalt Hacker News

A series of tricks and techniques I learned doing tiny GLSL demos

146 pointsby ibobevyesterday at 4:44 PM16 commentsview on HN

Comments

reactordevyesterday at 9:44 PM

I’m not a fan of the minified glsl that guys like this produce but I do get a chuckle when variable declarations spell out damnit. The frustrations are real.

That aside, i love the work, I just hate having to mentally grok the d and c style variables. As if number of chars minimum is the goal. Number of instructions yes, but we can do better than d and t.

Moonlight is beautiful.

show 1 reply
YesBoxyesterday at 8:39 PM

Thanks for putting this together. Shaders are something I wish I had the time to dive deep into, but since I'm making a game, my time is very limited for the time being. i.e. I only learn what I need to.

Only critique is.. if you're sharing to teach, your compact/one line [460] char GLSL code is a poor delivery mechanism.

show 2 replies
rypskaryesterday at 6:59 PM

Nice looking demos, I hope to some day manage to get results close to what you have.

I started playing around with GLSL recently and the closest I have come to describing working with it is that it is like creating poetry using math. Getting started was much easier than I expected, getting good results is so far as hard as expected

show 1 reply
taericyesterday at 10:48 PM

The comic at the end made me chuckle more than it probably should have. :D

jtfrenchtoday at 1:46 AM

Awesome stuff. Moonlight and Archipelago are particularly beautiful. I work in shaders fairly regularly (mainly Metal-based), and it still amazes me how so little code can produce seemingly infinite universes.

arionmilesyesterday at 9:29 PM

I'm oddly fascinated with GLSL shaders recently because I've been trying out a terminal which supports shaders. I have currently applied a retro terminal shader and love using terminal this way.

What's a good way to get started learning to build/customize shaders with GLSL? I have an engineering math background but I was never the best at math. And GLSL syntax looks a bit tedious to be honest, but I'd love to dive in.

show 2 replies
throwaway2046yesterday at 10:28 PM

The page almost crashed my phone... Archived version: https://archive.ph/9s9ys

WhyOhWhyQyesterday at 7:14 PM

This is really cool and inspirational! Looking forward to studying this closer!

akomtuyesterday at 8:03 PM

That's also a good test for chatbots: give it a picture and ask it to write a shadertoy demo that make this picture a 3d animation. So far the results are meh.