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.
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 |