point_light
A light with color and intensity. A point light by default, add a spot light component to add a cutoff. Can be parameterized to simulate the atmosphere sun.
Dependencies
Attributes
Attribute | Type | Default | Description |
---|---|---|---|
color | vec3 | [ 1, 1, 1 ] | Light color. |
intensity | float | 1 | Light intensity. |
range | float | 0 | The range for the point light. If the range is 0, then physically correct point light attenuation function is used. |
isDirectional | bool | false | Make this light directional, position is ignored in this case. |
isSun | bool | false | Make this light direction control the atmosphere sun direction. If more than one light is marked to be a sun results are undefined. |