Interface EffectRendererOptions
interface EffectRendererOptions {
clear?: boolean;
clearColor?: GPUColorDict;
name?: string;
update?: (deltaMs: number) => void;
}
clear?: boolean;
clearColor?: GPUColorDict;
name?: string;
update?: (deltaMs: number) => void;
}
Properties
Optionalclear
clear?: boolean
Whether to clear the swapchain before drawing. Defaults to true.
Optionalclear Color
clearColor?: GPUColorDict
Clear colour. Defaults to opaque black.
Optionalname
name?: string
Label for GPU resources. Defaults to the effect's own name.
Optionalupdate
update?: (deltaMs: number) => void
Per-frame callback invoked just before the effect is drawn, receiving the
frame delta in milliseconds. Use it to update uniforms (e.g. time, animation
state). This is the effect-path equivalent of a scene's onBeforeRender.
Options for
createEffectRenderer.