Class renderLight
Extends
component.
renderLight
Defined in: renderLight.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A rendering light in 3D space.
|
Field Attributes | Field Name and Description |
---|---|
Color of the light.
|
|
Whether to enable the light itself.
|
|
Intensity of the light.
|
|
Global / absolute position of the light.
|
|
Type of light.
|
- Fields borrowed from class component:
- host, info, isDrawing, isStepping, onAttach, onDraw, onStep, tag
Method Attributes | Method Name and Description |
---|---|
reset()
Resets the lights properties back to the default state.
|
- Methods borrowed from class component:
- canHandleEvent, draw, emitEvent, getKnownEvents, installEvent, installHandler, installHook, step, uninstallEvent, uninstallHandler, uninstallHook
Field Detail
color
Color of the light.
enabled
Whether to enable the light itself.
intensity
Intensity of the light.
position
Global / absolute position of the light.
type
Type of light. See sandboxe.renderLight.type for possible choices.
Method Detail
reset()
Resets the lights properties back to the default state.