Gama C Library
Gama C API Documentation
gm3Light Struct Reference

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

Detailed Description

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.

Field Documentation

◆ ambient

double gm3Light::ambient

The ambient light contribution (0.0 to 1.0).

◆ color

gmColor gm3Light::color

The color of the light.

◆ direction

gm3Pos gm3Light::direction

Direction of the light (e.g., for directional lights).

◆ intensity

double gm3Light::intensity

The brightness of the light (e.g., 0.0 to 1.0).

◆ position

gm3Pos gm3Light::position

World-space position of the light source.


The documentation for this struct was generated from the following file: