|
group2 0.1.0
CSE 125 Group 2
|
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. | |
| float | range = 500.0f |
| Attenuation range (world units); falloff = 1 - (d²/r²). | |
Dynamic point light — built by Game, injected into the PBR light array.
Game.cpp builds the list each frame from ECS (e.g. glow-emitting entities, muzzle flashes) and hands it off via setPointLights(). Renderer should cap at some reasonable max (legacy used 6 dynamic + 2 reserved for sun/fill).
| glm::vec3 PointLight::color {1.0f} |
Light colour (linear RGB).
| float PointLight::intensity = 1.0f |
Brightness multiplier.
| glm::vec3 PointLight::position {0.0f} |
World-space position.
| float PointLight::range = 500.0f |
Attenuation range (world units); falloff = 1 - (d²/r²).