These docs are for v1.2. Click to read the latest docs for v2-beta.x.

WHS.AmbientLight is a simple class, it extends WHS.Light and inherits all it's methods.

WHS.AmbientLight creates basic light around all scene, so it doesn't need properties like pos or target.

It supports only color parameter, which defines the color of the surrounded light and intensity of light.

new WHS.AmbientLight( {
  light: {
    color: 0xffffff,
    intensity: 0.2
  }
}).addTo(world);