points
points copied to clipboard
Storage map initialized in 1 resets
Basically the audio1 demo.
showMessage is a flag to hide a texture later, but the texture is not hidden after the click
// set a storage map with the padding
points.setStorageMap('showMessage', [1,0,0,0],'f32');
if(params.mouseClick == 1.){
click_event.updated = 1;
// other actions
showMessage = 0.;
}
// ...
return vec4f(audioX, 0, 0, 1) + ctaColor * showMessage;
The texture blink to black for a frame and then is visible again