Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
mnd::LightData Struct Reference

World-space position and RGB colour of a single point light. More...

#include <Common.h>

Public Attributes

vec3 color
 Linear RGB light colour (1,1,1 = white full-intensity).
 
vec3 position
 World-space origin of the light source.
 

Detailed Description

World-space position and RGB colour of a single point light.

Collected by Scene::CollectLight() from all GameObjects that carry a LightComponent, then forwarded to RenderQueue::Draw() to set light uniforms.

Definition at line 49 of file Common.h.

Member Data Documentation

◆ color

vec3 mnd::LightData::color

Linear RGB light colour (1,1,1 = white full-intensity).

Definition at line 51 of file Common.h.

◆ position

vec3 mnd::LightData::position

World-space origin of the light source.

Definition at line 52 of file Common.h.


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