|
Kohi Game Engine
|
#include <core_render_types.h>
Data Fields | |
| colour4 | 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... | |
Point light data formatted for direct shader use.
| colour4 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.