webani - v1.0.0
    Preparing search index...

    The WebaniScene class represents a 3D scene that contains various objects, lights, and a camera. This class is responsible for managing objects to be rendered and lights in the scene, as well as the camera.

    Index

    Constructors

    Properties

    _lightColors: Float32Array

    The colors of all lights in the scene stored in a flat Float32Array.

    _lightIntensities: Float32Array

    The intensities of all lights in the scene stored in a flat Float32Array.

    _lightPositions: Float32Array

    The positions of all lights in the scene stored in a flat Float32Array.

    _lights: WebaniPointLight[] = []

    A list of point lights in the scene.

    The main camera of the scene.

    _members: WebaniTransformable[] = []

    A list of transformable objects in the scene.

    Accessors

    • get lightColors(): Float32Array

      The colors of all the lights in the scene.

      Returns Float32Array

      A Float32Array containing the colors of the lights.

    • get lightIntensities(): Float32Array

      The intensities of all the lights in the scene.

      Returns Float32Array

      A Float32Array containing the intensities of the lights.

    • get lightPositions(): Float32Array

      The positions of all the lights in the scene.

      Returns Float32Array

      A Float32Array containing the positions of the lights.

    Methods