Here is the playground
My needs are:
I can turn an effect on or off with a macro
Uncomment lines 38-41 of code, which works fine
But I want to achieve the same effect by clicking handle
Like this, but it doesn’t work
button.addEventListener("click", () => {
// TO DO
// How do I turn effects on or off with a button interaction setting macro?
// This is not effective
customMaterial.Fragment_Definitions(`
#define USE_WORLD_CLIP
#define USE_COLOR_MIX
`)
})
If you can help, thank you very much!!!