Kohi Game Engine
point_light Struct Reference

A point light, the most common light source, which radiates out from the given position. More...

#include <light_system.h>

Data Fields

kname name
 The name of the light. More...
 
u32 generation
 The generation of the light, incremented on every update. Can be used to detect when a shader upload is required. More...
 
point_light_data data
 The shader data for the point light. More...
 
void * debug_data
 Debug data assigned to the light. More...
 
vec4 position
 

Detailed Description

A point light, the most common light source, which radiates out from the given position.

Field Documentation

◆ data

The shader data for the point light.

◆ debug_data

void* debug_data

Debug data assigned to the light.

◆ generation

u32 generation

The generation of the light, incremented on every update. Can be used to detect when a shader upload is required.

◆ name

kname name

The name of the light.

◆ position

vec4 position

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