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.
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.
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!
Thank you for the tutorial! My question is, is there any tool I can use to parse GLSL codes to do this automatically?
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)
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.
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 🥨
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!