5 Comments
User's avatar
Hanprogramer's avatar

Thank you for the tutorial! My question is, is there any tool I can use to parse GLSL codes to do this automatically?

Expand full comment
Xor's avatar

It should be done manually because every case is different, but this might be a task that AI could help with (attempt at your own risk)

Expand full comment
design4use's avatar

Shader beginner here - great tutorial.

Let's say I wanted to combine two shaders with both moving elements, one in the background that does moving color gradients, and one in the foreground that applies a circular ripple/shockwave effect on top of it.

How would you approach this conceptually? The mental challenge for me is that both are moving unlike a static photo background texture which I can just read.

Expand full comment
design4use's avatar

I guess after seeing your example it still needs feeding the background shader as a function result into the foreground shader as an input, no matter that both are moving indpendent of each other.

It just bends my brain into a pretzel 🥨

Expand full comment
Xor's avatar

Yeah, that should work. Essentially, you create the shader functions that use texture coordinate inputs, then you can apply the foreground shockwave effect to those coordinates before you pass them into the background function. Hopefully, that answers your questions!

Expand full comment