@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / RenderSystem
Class: RenderSystem ​
Defined in: systems/RenderSystem.ts:31
Draws the frame: through the post-processing chain in scene.userData.ecsPostprocessingComposer while scene.userData.ecsPostprocessingComposerActive is true, otherwise with renderer.render(scene, camera). Runs last in the default system list.
Works with WebGLRenderer and WebGPURenderer. A WebGPURenderer must be initialised (await renderer.init()) first; until it is, frames are skipped with a single warning instead of throwing.
Implements ​
Constructors ​
Constructor ​
ts
new RenderSystem(
renderer,
scene,
camera,
afterRender?): RenderSystem;Defined in: systems/RenderSystem.ts:44
Parameters ​
| Parameter | Type |
|---|---|
renderer | EcsRenderer |
scene | Scene |
camera | PerspectiveCamera |
afterRender? | () => void |
Returns ​
RenderSystem
Properties ​
| Property | Modifier | Type | Default value | Description | Defined in |
|---|---|---|---|---|---|
runsWhilePaused | readonly | true | true | Keep ticking while the world is paused. Leave it unset for anything that moves the game on: such a system stops at world.pause() and picks up where it was at world.resume(). | systems/RenderSystem.ts:32 |
Methods ​
update() ​
ts
update(_world): void;Defined in: systems/RenderSystem.ts:120
Parameters ​
| Parameter | Type |
|---|---|
_world | World |
Returns ​
void

