Skip to content

five-on-it / apps/client/src/renderer/scene / createScene

Function: createScene() ​

createScene(canvas): SceneContext

Defined in: apps/client/src/renderer/scene.ts:87

Creates the engine (antialiased at full resolution on a GPU, cheaper without one), scene, camera and lights on a canvas. The drawing buffer is not preserved between frames: kept, the browser copies the whole multisampled picture every frame instead of swapping it, for nobody (a screenshot reads the composited page).

Parameters ​

canvas ​

HTMLCanvasElement

Returns ​

SceneContext