27#include "scene/Component.h"
Point light that contributes position + colour to the render pass.
void LoadProperties(const nlohmann::json &json) override
void SetColor(const vec3 &color)
Set the light's emission colour.
void Update(f32 deltaTime) override
No per-frame computation needed; position is queried from owner on demand.
const vec3 & GetColor() const
Returns the linear RGB colour of this light (default: white {1,1,1}).
#define COMPONENT(ComponentClass)
glm::vec3 vec3
3-component float vector (e.g. world position, RGB colour, normals).
float f32
32-bit IEEE float — the standard GL scalar type.