Constructor
new ESun(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 |
number | the direction of the light. It should be on of the following values:
|
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
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