Constructor
new PointLight(position, color, intensity)
Constructor
Parameters:
Name | Type | Default | Description |
---|---|---|---|
position |
Point | the position of the light |
|
color |
Color | the color of the light |
|
intensity |
number |
1
|
the intensity of the light |
Classes
Members
color :Color
The color of the light.
Type:
- Color
color :Color
The color of the light.
Type:
- Color
color :Color
The color or the light.
Type:
- Color
intensity :number
The intensity of the light.
Type:
- number
intensity :number
The intensity of the light.
Type:
- number
intensity :number
The intensity or the light.
Type:
- number
isGlobal :boolean
Says whether the shape is global. True if global, false otherwise.
Type:
- boolean
isGlobal :boolean
Says whether the shape is global. True if global, false otherwise.
Type:
- boolean
isGlobal :boolean
Says whether the shape is global. True if global, false otherwise.
Type:
- boolean
isGlobal :boolean
Says whether the shape is global. True if global, false otherwise.
Type:
- boolean
isGlobal :boolean
Says whether the shape is global. True if global, false otherwise.
Type:
- boolean
isLocal :boolean
Says whether the shape is local. True if local, false otherwise
Type:
- boolean
isLocal :boolean
Says whether the shape is local. True if local, false otherwise
Type:
- boolean
position :Point
The position of the light.
Type:
position :Point
The position of the light.
Type:
position :Point
The position of the light.
Type:
Methods
(abstract, static) glslClass() → {string}
Return the chunk of GLSL code defining the corresponding structure.
Returns:
- Type
- string
(abstract, static) glslClass() → {string}
Return the chunk of GLSL code defining the corresponding structure.
Returns:
- Type
- string
(abstract, static) glslClass() → {string}
Return the chunk of GLSL code defining the corresponding structure.
Returns:
- Type
- string
(abstract, static) glslClass() → {string}
Return the chunk of GLSL code defining the corresponding structure.
Returns:
- Type
- string
(abstract, static) glslClass() → {string}
Return the chunk of GLSL code defining the corresponding structure.
Returns:
- Type
- string