#include "../color.h"
#include "position.h"
Go to the source code of this file.
◆ gm3_light_create()
Initializes a gm3Light struct with default values.
- Parameters
-
| l | A pointer to the gm3Light struct to initialize. |
- Returns
- 0 on success, -1 if l is NULL.
◆ gm3_default_light
Initial value:= {
.position = {0, 1, 0},
.direction = {0, -1, 1},
.color = 0xCCCCCCFF,
.intensity = 0.5,
.ambient = 0.5,
}
A default gm3Light instance.
Initializes a light source at {0, 1, 0} pointing towards {0, -1, 1}, with a white color, medium intensity, and some ambient light.