[page:Object3D] →

[name]

Visualize a [page:DirectionalLight]'s effect on the scene

Constructor

[name]([page:DirectionalLight light], [page:Number size])

light -- [page:DirectionalLight] -- Light to visualize
size -- dimensions of the plane
Creates a line and plane to visualize the light's position and direction

Properties

[property:Line lightPlane]

Contains the line mesh showing the location of the directional light.

[property:DirectionalLight light]

Contains the directionalLight.

[property:Line targetLine]

Contains the line mesh that shows the direction of the light.

Methods

.[method:null update]()

Updates the helper to match the position and direction of the [page:.light].

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]