Port ISF and ShaderToy audio reactive shaders to Wire's ISF node
Posted: Tue Aug 15, 2023 18:18
Hello,
I'm trying to port some audio reactive shaders that I found on isf.video and ShaderToy as I'm learning more about shaders in general.
According to the wire docs (https://resolume.com/support/en/wire-fft), we create a spectrum input to pass the host's FFT. My understanding is that it will be an array of 1024 floats.
Now, it looks like the inputs for ISF (and ShaderToy) shaders are a little different and that the node is expecting a texture of audio data, where the audio data is stored in the red channel of the texture.
I'm looking at https://editor.isf.video/shaders/6154d8 ... 001a0a62a5, which is a port of https://www.shadertoy.com/view/Mss3Dr and both seem to be accessing the data the same way.
Is there way I can make the shaders compatible with the spectrum input? I've been looking at the "Video > Texture" node but I'm unsure how to proceed there.
Would appreciate any help! Thank you!
I'm trying to port some audio reactive shaders that I found on isf.video and ShaderToy as I'm learning more about shaders in general.
According to the wire docs (https://resolume.com/support/en/wire-fft), we create a spectrum input to pass the host's FFT. My understanding is that it will be an array of 1024 floats.
Now, it looks like the inputs for ISF (and ShaderToy) shaders are a little different and that the node is expecting a texture of audio data, where the audio data is stored in the red channel of the texture.
I'm looking at https://editor.isf.video/shaders/6154d8 ... 001a0a62a5, which is a port of https://www.shadertoy.com/view/Mss3Dr and both seem to be accessing the data the same way.
Is there way I can make the shaders compatible with the spectrum input? I've been looking at the "Video > Texture" node but I'm unsure how to proceed there.
Would appreciate any help! Thank you!