Port ISF and ShaderToy audio reactive shaders to Wire's ISF node

Post your awesome Wire patches here, share tutorials
Post Reply
alaq
Posts: 1
Joined: Tue Aug 15, 2023 16:51

Port ISF and ShaderToy audio reactive shaders to Wire's ISF node

Post by alaq »

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!

Zoltán
Team Resolume
Posts: 7483
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Port ISF and ShaderToy audio reactive shaders to Wire's ISF node

Post by Zoltán »

You can create textures from float arrays in Wire with the ToTexture node, then use Resize in stretch mode for example to make it big.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

Post Reply