Small World Engine API Reference - v0.46.1
    Preparing search index...

    Interface LightDataInterface

    Interface representing the data for all lights in a scene.

    interface LightDataInterface {
        aCol: Color;
        aIntensity: number;
        aLights: AreaLight[];
        dCol: Color;
        dDir: Vector3D;
        dIntensity: number;
        dLight?: DirectionalLight;
        pLights: PointLight[];
        sLights: SpotLight[];
    }
    Index

    Properties

    aCol: Color

    Ambient light color.

    aIntensity: number

    Ambient light intensity.

    aLights: AreaLight[]

    List of area lights.

    dCol: Color

    Directional light color.

    dDir: Vector3D

    Directional light direction.

    dIntensity: number

    Directional light intensity.

    Reference to the active directional light, if any.

    pLights: PointLight[]

    List of point lights.

    sLights: SpotLight[]

    List of spot lights.