CmdLightCreate
Creates a new light source in the scene.
Arguments
| Field | Type | Description |
|---|---|---|
| windowId | u32 | ID of the window |
| lightId | u32 | Unique ID for the light |
| label | Option |
(Optional) Semantic name |
| kind | Option |
(Optional) Type (Point, Directional, Spot) |
| position | Option |
(Optional) Light position |
| direction | Option |
(Optional) Light direction |
| color | Option |
(Optional) Light color (RGBA) |
| groundColor | Option |
(Optional) Ambient ground color |
| intensity | Option |
(Optional) Light brightness |
| range | Option |
(Optional) Effective distance |
| spotInnerOuter | Option |
(Optional) Inner and outer spot angles |
| layerMask | u32 | (Optional) Mask (default: 0xFFFFFFFF) |
| castShadow | bool | (Optional) Cast shadows (default: true) |
Response
Returns CmdResultLightCreate:
| Field | Type | Description |
|---|---|---|
| success | bool | Whether the light was created |
| message | String | Status or error message |
Documentation Vulfram Core