API

Interface ISceneComponent

This represents a scene component.

This is used to decouple the dependency the scene is having on the different workloads like layers, post processes...

interface ISceneComponent {
    name: string;
    scene: Scene;
    dispose(): void;
    rebuild(): void;
    register(): void;
}

Hierarchy (View Summary)

Implemented by

Index
name: string

The name of the component. Each component must have a unique name.

scene: Scene

The scene the component belongs to.