The API is no longer being updated here until further notice. |
Needs summary.
enabled, light = Model:GetLight()
Returns[]
- enabled
- boolean - Appears to be true for lit and false for unlit.
- light
- ModelLight
Field | Type | Description |
---|---|---|
omnidirectional | boolean? = false |
If the light is omnidirectional [lighting in all directions]. |
point | vector3🔗 | Vector from the origin to where the light source should face. If this light is omnidirectional then point refers to a position, otherwise it refers to a direction. |
ambientIntensity | number? = 0 |
Intensity of the ambient component of the light source. |
ambientColor | colorRGB?🔗 | Color of the ambient component of the light source (0-1). |
diffuseIntensity | number? = 0 |
Intensity of the direct component of the light source. |
diffuseColor | colorRGB?🔗 | Color of the direct component of the light source (0-1). |