Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

RendererDefaults

What Game hands a gl factory: the canvas to draw into, and the settings fiber makes its own renderer with. Both WebGLRenderer and WebGPURenderer take it as it is.

Property Type Description
alpha boolean A canvas the page shows through where nothing draws: true.
antialias boolean Multisampled edges: true.
canvas HTMLCanvasElement The canvas Game mounted, which the renderer draws into.
powerPreference "high-performance" Asks the browser for the faster of two GPUs.