Kohi Game Engine
point_light_data Struct Reference

#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...
 

Field Documentation

◆ colour

vec4 colour

The light colour.

◆ constant_f

f32 constant_f

Usually 1, make sure denominator never gets smaller than 1.

◆ linear

f32 linear

Reduces light intensity linearly.

◆ padding

f32 padding

Additional padding used for memory alignment purposes. Ignored.

◆ position

vec4 position

The position of the light in the world. The w component is ignored.

◆ quadratic

f32 quadratic

Makes the light fall off slower at longer distances.


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