Class: Headlight

Headlight

Creates a new Headlight

Constructor

new Headlight(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

setOn(on)

Sets this headlight on/off

Parameters:
Name Type Description
on Boolean

If true, this headlight is enabled; otherwise this headlight is disabled

Author:
  • Stefano Gabriele
Source: