Kohi Game Engine
|
#include <light_system.h>
Data Fields | |
vec4 | colour |
The light colour. More... | |
vec4 | position |
The position of the light in the world. The w component is ignored. More... | |
f32 | constant_f |
Usually 1, make sure denominator never gets smaller than 1. More... | |
f32 | linear |
Reduces light intensity linearly. More... | |
f32 | quadratic |
Makes the light fall off slower at longer distances. More... | |
f32 | padding |
Additional padding used for memory alignment purposes. Ignored. More... | |
vec4 colour |
The light colour.
f32 constant_f |
Usually 1, make sure denominator never gets smaller than 1.
f32 linear |
Reduces light intensity linearly.
f32 padding |
Additional padding used for memory alignment purposes. Ignored.
vec4 position |
The position of the light in the world. The w component is ignored.
f32 quadratic |
Makes the light fall off slower at longer distances.