group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PointLight Struct Reference

Dynamic point light – built by Game, injected into the PBR light array. More...

#include <RendererTypes.hpp>

Public Attributes

glm::vec3 position {0.0f}
 World-space position.
 
glm::vec3 color {1.0f}
 Light colour (linear RGB).
 
float intensity = 1.0f
 Brightness multiplier (passed as color.a in the UBO).
 
float range = 500.0f
 Attenuation range (world units); falloff = 1 - (d²/r²).
 

Detailed Description

Dynamic point light – built by Game, injected into the PBR light array.

Member Data Documentation

◆ color

glm::vec3 PointLight::color {1.0f}

Light colour (linear RGB).

◆ intensity

float PointLight::intensity = 1.0f

Brightness multiplier (passed as color.a in the UBO).

◆ position

glm::vec3 PointLight::position {0.0f}

World-space position.

◆ range

float PointLight::range = 500.0f

Attenuation range (world units); falloff = 1 - (d²/r²).


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