points icon indicating copy to clipboard operation
points copied to clipboard

Storage map initialized in 1 resets

Open Absulit opened this issue 5 months ago • 0 comments

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

Absulit avatar Aug 31 '25 01:08 Absulit