I made a shadertoy version of the 4 kilobyte intro I made for Revision 2024! The sound is also made with shader so for the first time one of my intro can run entirely on shadertoy, I'm so happy for that!
https://www.shadertoy.com/view/Mcy3RR
@nusan how does sound work in shaders? There must be a way to pipe the data into the soundcard…?
@root42 the idea is super simple, you use a shader to render your sound into a texture, each pixel represent a sound sample, and it's then read back to the cpu and copied into the sound buffer. Using a texture format with two float channels makes it directly compatible with a sound buffer!
@nusan that is pretty straightforward indeed.