Class: pointLight

pointLight~pointLight(scene, settingsopt)

new pointLight(scene, settingsopt)

A light that gets emitted from a single point in all directions.
Parameters:
Name Type Attributes Default Description
scene THREE.Group | THREE.Scene Group or Scene of the pointLight.
settings object <optional>
{} the following settings are available
Properties
Name Type Attributes Default Description
options Options <optional>
new Options() Options instance. The following options are available. See options parameter of MyThree class.
Properties
Name Type Attributes Description
pointLight boolean <optional>
false - do not use pointLight.
dat object <optional>
use dat-gui JavaScript Controller Library. dat.gui. See options.dat parameter of MyThree class.
Properties
Name Type Attributes Description
pointLightGui object <optional>
false - do not adds a pointLight folder. Have effect only if options.pointLight !== false.
scale number <optional>
is 1
position THREE.Vector3 <optional>
light position. Default is zero position.
Source:
See:

Methods

controls(guiParamsopt)

Adds the folder of the light settings into gui.
Parameters:
Name Type Attributes Default Description
guiParams object <optional>
{} Followed parameters is allowed.
Properties
Name Type Attributes Description
group THREE.Group | THREE.Scene <optional>
Group or Scene of the light point.
folder GUI <optional>
parent folder
folderName string <optional>
folder name
Source: