An ambient light source within a View.

Constructors

Properties

Accessors

Methods

Constructors

Properties

id: string

ID of this AmbientLight, unique within the View.

view: View

The View to which this AmbientLight belongs.

Accessors

  • get color(): FloatArrayParam

    Gets the RGB color of this AmbientLight.

    Default value is [0.7, 0.7, 0.7].

    Returns FloatArrayParam

  • set color(color: FloatArrayParam): void

    Sets the RGB color of this AmbientLight.

    Default value is [0.7, 0.7, 0.7].

    Parameters

    • color: FloatArrayParam

      The AmbientLight's RGB color.

    Returns void

  • get intensity(): number

    Gets the intensity of this AmbientLight.

    Default value is 1.0 for maximum intensity.

    Returns number

    The AmbientLight's intensity.

  • set intensity(intensity: number): void

    Sets the intensity of this AmbientLight.

    Default value is 1.0 for maximum intensity.

    Parameters

    • intensity: number

      The AmbientLight's intensity.

    Returns void

Methods