With vertex shader
Uniform sampler 2D sound;
.
.
.
float snd = texture2D(soundt, p.xz * vec 2 (0.75, 1.0));
Although I have a description, I would like to pass FFT audio data as ofTexture.
How can we write “ofApp.cpp” to convert audio fft to texture and pass it?