Your Shadertoy and ISF shaders, hooked up to the music.
Shadertoy and ISF are the two main formats for shaders shared on the web. VECTEUR·A reads both: paste the code, the app converts it, tells you what it does with the sound, and makes it breathe with the music, even if it was written without any.
One idea, two ways of writing it.
Shadertoy
The best-known shader sharing site, created in 2013 by Iñigo Quilez and Pol Jeremias. You write a shader in the browser and publish it: a huge gallery, from the simplest examples to the most spectacular.
ISF
Interactive Shader Format, created by VIDVOX, the maker of the VJ software VDMX, and released under the MIT licence. An ISF shader begins with a small JSON block that declares its settings: the software that reads it turns them into sliders. It can create an image as well as filter a video.
Point by point.
| Shadertoy | ISF | |
|---|---|---|
| Main function | mainImage(out vec4 fragColor, in vec2 fragCoord) | main() writing gl_FragColor |
| Settings | Numbers written in the code: you change them by editing the code. | Declared in the header, under INPUTS : each one becomes a slider. |
| Time and size | iTime, iResolution, iMouse, iFrame | TIME, RENDERSIZE, FRAMEINDEX |
| Images and sound | Four inputs iChannel0…iChannel3, connected in the site's interface, outside the code. Music arrives as a 512 × 2 pixel image: spectrum and waveform. | Inputs image, audio and audioFFT declared in the header. |
| Several passes | Buffer A to D tabs. | PASSES and PERSISTENT_BUFFERS in the header. |
| Create or filter | Mostly generators: the shader creates the image. | Both: a shader that declares inputImage filters the image it is given. |
| Licence | CC BY-NC-SA 3.0 by default, unless the author says otherwise: no commercial use. | The author's choice, often written in the header. |
Paste the code, the app does the rest.
From Shadertoy
mainImageis wrapped, not rewritten: a few lines at the top translate Shadertoy's inputs, and stay visible in the editor.iChannel0: you tell the importer whether it receives the image loaded in the app (photo, video, camera) or the sound, in Shadertoy's format.iChannel1andiChannel2receive the spectrum and the waveform of the sound.iChannelTimefollows the position of the track being played.- Declarations copied from Shadertoy's cheat sheet are commented out instead of breaking the compilation.
- You are asked for the author, the licence and the page address: they stay in the shader's header.
From ISF
- The ISF header is already VECTEUR·A's format: the shader compiles almost as it is.
- Every entry of
INPUTSbecomes a slider, set with the mouse or by MIDI. - The
audioandaudioFFTinputs receive the waveform and the spectrum of the sound. - A shader that declares
inputImagebecomes a filter, usable on any mode. - Other images receive the image loaded in the app: photo, video or camera.
Even a shader written without music starts to breathe.
Most gallery shaders only know the passing of time. At import, you choose the clock that drives it: the normal clock, or a clock that follows the music. The shader is not changed, yet it speeds up on the kick and slows down in the quiet parts.
- An import report says what the shader reads from the sound, or that it reads nothing.
- Time can move at the pace of the level, the bass, the mids or the treble: you choose at import, and can change it later.
- To go further, the code can read the sound directly:
BASSMIDTREBLEVELBEATBPMSPECTRUMWAVE.
What does not work yet, said plainly.
- Multi-pass shaders (Buffer A to D on Shadertoy, PASSES in ISF): they keep the previous frame in memory, which the app does not do yet. The importer says so instead of showing a black screen.
- Shadertoy's sound and virtual reality shaders.
- Reading the keyboard through an iChannel: flagged at import, without effect.
- ISF files that embed their own images: only one image is available, the one loaded in the app.
Read this before publishing.
A shader remains its author's work. On Shadertoy, unless stated otherwise, it is under the CC BY-NC-SA 3.0 licence: you may play and modify it while crediting the author, but not for commercial use. Before publishing a monetised video or performing for a client, check the shader's licence. VECTEUR·A keeps the author and the licence in the header of every imported shader.
By edition, and to go further.
By edition
- Free version : paste, convert, play, modify. Nothing is kept when you close.
- CORE : imported shaders stay in your library.
- LIVE : import of .fs files, and automation of every shader's settings.
Free, with no time limit.
Every mode and every effect. You buy when you want to keep your work, export without a watermark or play on stage.





