Class: AmbientLight

AmbientLight

Creates a new Ambient light

Constructor

new AmbientLight(scene, camera, renderer)

Parameters:
Name Type Description
scene THREE.Scene

The scene object

camera THREE.Camera

The camera object

renderer THREE.WebGLRenderer

The renderer object

Author:
  • Stefano Gabriele
Source:

Methods

isOn() → {Boolean}

Returns true if this ambient light is on

Author:
  • Stefano Gabriele
Source:
Returns:

true if this ambient light is on, false otherwise

Type
Boolean

setOn(on)

Sets this ambient light on/off

Parameters:
Name Type Description
on Boolean

If true, this ambient light is enabled; otherwise this ambient light is disabled

Author:
  • Stefano Gabriele
Source: