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. --- application/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'application/main.cpp') diff --git a/application/main.cpp b/application/main.cpp index f5acb3b..d64d799 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -1,3 +1,4 @@ +#include "game/scenary/light.h" #include "ui/mainApplication.h" #include "ui/mainWindow.h" #include @@ -108,6 +109,9 @@ public: {0, rotationDistribution(randomdev), 0}}); } } + + world.create(assets.at("old-lamp").dynamicCast(), + Location {.pos = terrain->positionAt({{311000000, 491100000}})}); } mainLoop(); -- cgit v1.3