How to use Shadertoy visualizations from shadertoy.com?



Specifically, the ones that seem to have multiple source files, like this: https://www.shadertoy.com/view/4tGfDW

I tried putting all of the code into a single .glsl file and pointing the music visualization addon to the file, but it doesn’t work at all.

If I use this same method with other shaders from that same site (especially when they only seem to have one source file), they sometimes work but are kind of buggy.

The ones that come with the visualization addon work correctly.

Thanks