API

Interface TextRendererOptions

Options for creating a standalone text renderer that draws directly to a surface.

interface TextRendererOptions {
    clear?: boolean;
    clearValue?: GPUColorDict;
    layers: readonly TextLayer[];
}
Index
clear?: boolean

Default true. Set false for HUD overlays so the text pass preserves existing scene color.

clearValue?: GPUColorDict

Default { r: 0, g: 0, b: 0, a: 1 }.

layers: readonly TextLayer[]