addDirectionalLight
Add directional lighting to 3D scenes to illuminate objects and create realistic shadows, enhancing visual depth and realism in Spline designs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sceneId": "<sceneId>"
},
"name": "addDirectionalLight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sceneId | Yes | Scene ID | |
| name | No | Light name | Directional Light |
| position | No | Light position | |
| color | No | Light color (hex) | #ffffff |
| intensity | No | Light intensity | |
| castShadow | No | Whether to cast shadows |