Light3D
GPU GpuDefines a configurable 3D light source for the scene pipeline.
Light3D creates directional, point, or spot lights with adjustable color, placement, and intensity so scenes can be lit without embedding light logic inside geometry operators.
Parameters
| Name | Type | Description |
|---|---|---|
| type | int | Light type: directional, point, or spot. |
| intensity | float | Overall light intensity. |
| r | float | — |
| g | float | — |
| b | float | — |
| radius | float | Influence radius for local lights. |
| pos_x | float | Light position along the X axis. |
| pos_y | float | — |
| pos_z | float | — |
| dir_x | float | — |
| dir_y | float | Y component of the light direction. |
| dir_z | float | — |
| spot_angle | float | Cone angle for spot lights. |
| spot_blend | float | — |