Create a shader effect and add it to the extra.
PhiraExtra to modify in place.
Shader name (built-in like "chromatic" or custom like "/myshader.glsl").
"chromatic"
"/myshader.glsl"
Effect start beat.
Effect end beat.
Additional options.
The index of the newly added effect.
const extra = createExtra(120);addEffect(extra, 'chromatic', 0, 8, { vars: { power: 0.02, sampleCount: 5 }}); Copy
const extra = createExtra(120);addEffect(extra, 'chromatic', 0, 8, { vars: { power: 0.02, sampleCount: 5 }});
Create a shader effect and add it to the extra.