Skip to content

Storage map initialized in 1 resets #187

@Absulit

Description

@Absulit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions