If we take as an example the following Shadertoy shader we can see that it is made of 3 different files, namely Buffer A, Buffer B, and Image. How would I create something similar in Godot. Do I need to use Sampler2D
. If yes, how can I have multiple Sampler2D
objects that point at different things? (I made a shader where I use an image texture, but I half understand it for the moment so I am not sure.)
How can I deal with iFrame
?
Lastly, in Shadertoy, iChannel0/1/2
s are used for a number of things, like sound, images and so on (e.g. line 177 of Buffer B on the shader). Does this fall under my first question, namely just use Sampler2D
? In some cases Buffer A/B/C/D
are loaded into the iChannel
s and I am not sure what they are.
Thanks.