cocos_add_sphere_light
Add a spherical point light with physical size to Cocos Creator scenes for realistic lighting effects like bulbs or lanterns. Configure color, luminance, range, and temperature parameters.
Instructions
Attach cc.SphereLight — point-light with physical size (bulb, lantern).
term: 0=LUMINOUS_FLUX (default), 1=LUMINANCE.
light_range is the falloff distance.
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": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_sphere_light"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| color_r | No | ||
| color_g | No | ||
| color_b | No | ||
| color_a | No | ||
| size | No | ||
| luminance | No | ||
| light_range | No | ||
| term | No | ||
| use_color_temperature | No | ||
| color_temperature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |