new LightSource(position, distance, darkopt, lightopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position |
Array.<number>
|
Light source position --> [x, y, z] | ||
distance |
number
|
Light source distance from scene | ||
dark |
number
|
<optional> |
0.2 | darkness --> [0, 1] |
light |
number
|
<optional> |
1 | lightness --> [0, 1] |