createLight
Add ambient, directional, point, spot, or hemisphere lighting to 3D scenes in Three.js, A-Frame, or Babylon.js with customizable color, intensity, position, and shadow options.
Instructions
Add a light to the scene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lightType | Yes | Type of light | |
| id | No | Optional id. Auto-generated if omitted. | |
| color | No | Hex color. Default #ffffff. | |
| intensity | No | Light intensity. Default 1.0. | |
| position | No | Light world position (not needed for ambient) | |
| target | No | Directional/spot target position | |
| castShadow | No | Enable shadow casting | |
| angle | No | Spot light cone angle in radians | |
| penumbra | No | Spot light edge softness | |
| distance | No | Point/spot attenuation distance | |
| groundColor | No | Hemisphere ground color |