Extends BBMOD_PunctualLight
constructor
new BBMOD_SpotLight([_color[, _position[, _range[, _direction[, _angleInner[, _angleOuter]]]]]])
A spot light.
Name | Type | Description |
---|---|---|
_color | Struct.BBMOD_Color |
The light's color. Defaults to BBMOD_C_WHITE. |
_position | Struct.BBMOD_Vec3 |
The light's position. Defaults to (0, 0, 0) if undefined . |
_range | Real |
The light's range. Defaults to 1. |
_direction | Struct.BBMOD_Vec3 |
The light's direction. Defaults to BBMOD_VEC3_FORWARD if undefined . |
_angleInner | Real |
The inner cone angle in degrees. Defaults to 10. |
_angleOuter | Real |
The outer cone angle in degrees. Defaults to 20. |
Name | Description |
---|---|
AngleInner | The inner cone angle in degrees. Default value is 10. |
AngleOuter | The inner cone angle in degrees. Default value is 20. |
Direction | The direction of the light. The default value is (1, 0, 0) . |
Copyright © 2022, BlueBurn. Built on December 31, 2022 using GMDoc.