|
Gama C Library
Gama C API Documentation
|
Represents a single light source in a 3D scene. More...
#include <light.h>
Data Fields | |
| gm3Pos | position |
| gm3Pos | direction |
| gmColor | color |
| double | intensity |
| double | ambient |
Represents a single light source in a 3D scene.
This struct defines the properties of a light, including its position, direction, color, and intensity, which are used in lighting calculations by the 3D renderer.
| double gm3Light::ambient |
The ambient light contribution (0.0 to 1.0).
| gmColor gm3Light::color |
The color of the light.
| gm3Pos gm3Light::direction |
Direction of the light (e.g., for directional lights).
| double gm3Light::intensity |
The brightness of the light (e.g., 0.0 to 1.0).
| gm3Pos gm3Light::position |
World-space position of the light source.