Contains the render/update loop context. Each Entity being updated is given a context in its update methods. This context can be modified by entities (notably the near and far clipping planes).

interface Context {
    distance: {
        max: number;
        min: number;
        plane: Plane;
    };
    view: renderer.View;
}

Properties

Properties

distance: {
    max: number;
    min: number;
    plane: Plane;
}

Contains clipping plane distances.

Type declaration

  • max: number

    The maximum distance to the camera

  • min: number

    The minimum distance to the camera

  • plane: Plane

    The plane that is normal to the line of sight, and located at the position of the camera

The view.