Constructor
new ConstDirLight(color, intensity, direction)
Constructor.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
color |
Color | the color of the light |
|
intensity |
number |
1
|
the intensity of the light |
direction |
Vector3 | the direction of the light. |
Classes
Members
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
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