summaryrefslogtreecommitdiff
path: root/game/scenary/light.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/scenary/light.h')
-rw-r--r--game/scenary/light.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/game/scenary/light.h b/game/scenary/light.h
index 0b19535..0b9320c 100644
--- a/game/scenary/light.h
+++ b/game/scenary/light.h
@@ -5,15 +5,18 @@
class Location;
-class Light : public WorldObject {
+class Light : public WorldObject, public InstanceLights {
std::shared_ptr<const Illuminator> type;
- InstanceVertices<Illuminator::LocationVertex>::InstanceProxy location;
+ InstanceVertices<Illuminator::InstanceVertex>::InstanceProxy instance;
void
tick(TickDuration) override
{
}
+ std::vector<InstanceVertices<SpotLightVertex>::InstanceProxy> spotLightInstances;
+ std::vector<InstanceVertices<PointLightVertex>::InstanceProxy> pointLightInstances;
+
public:
Light(std::shared_ptr<const Illuminator> type, const Location & position);
};