From 30fcb8bce7b60b6754a0d35f2f15b627d0fba4cb Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 1 Apr 2026 20:21:23 +0100 Subject: Have Renderable manage all instance lights Spot and point lights now existing in Renderable, the vertex data contains the owning parent object's index in CommonLocationData, the render step is just a single draw call. --- game/scenary/light.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'game/scenary/light.h') diff --git a/game/scenary/light.h b/game/scenary/light.h index afb7e03..b1ea469 100644 --- a/game/scenary/light.h +++ b/game/scenary/light.h @@ -14,6 +14,9 @@ class Light : public WorldObject { { } + std::vector::InstanceProxy> spotLightInstances; + std::vector::InstanceProxy> pointLightInstances; + public: Light(std::shared_ptr type, const Location & position); }; -- cgit v1.3