Kohi Game Engine
directional_light Struct Reference

A directional light, typically used to emulate sun/moon light. More...

#include <light_system.h>

Data Fields

kname name
 The name of the directional light. More...
 
u32 generation
 
directional_light_data data
 The directional light shader data. More...
 
void * debug_data
 Debug data assigned to the light. More...
 

Detailed Description

A directional light, typically used to emulate sun/moon light.

Field Documentation

◆ data

The directional light shader data.

◆ debug_data

void* debug_data

Debug data assigned to the light.

◆ generation

u32 generation

@bried The generation of the light, incremented on change. Can be used to tell when a shader upload is required.

◆ name

kname name

The name of the directional light.


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