summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2026-03-31 00:45:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2026-03-31 00:45:41 +0100
commitc29c04aa3caf6487b127c87dc42fc293f354a85d (patch)
tree65809d4f7a4fc8162b4b49a175803fc928ce0447 /game
parentUse a single buffer for the location/rotation data of all renderable objects (diff)
downloadilt-c29c04aa3caf6487b127c87dc42fc293f354a85d.tar.bz2
ilt-c29c04aa3caf6487b127c87dc42fc293f354a85d.tar.xz
ilt-c29c04aa3caf6487b127c87dc42fc293f354a85d.zip
Move light vertex structs out
Diffstat (limited to 'game')
-rw-r--r--game/scenary/illuminator.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/game/scenary/illuminator.h b/game/scenary/illuminator.h
index 53a7981..c342bd4 100644
--- a/game/scenary/illuminator.h
+++ b/game/scenary/illuminator.h
@@ -2,6 +2,7 @@
#include "assetFactory/asset.h"
#include "gfx/gl/instanceVertices.h"
+#include "gfx/gl/lights.h"
#include "gfx/models/texture.h"
#include "gfx/renderable.h"
@@ -17,19 +18,6 @@ class Illuminator : public Asset, public Renderable, public StdTypeDefs<Illumina
public:
[[nodiscard]] std::any createAt(const Location &) const override;
- struct LightCommonVertex {
- RelativePosition3D position;
- RGB colour;
- RelativeDistance kq;
- };
-
- struct SpotLightVertex : LightCommonVertex {
- Direction3D direction;
- Angle arc;
- };
-
- struct PointLightVertex : LightCommonVertex { };
-
struct SpotLight : Persistence::Persistable, SpotLightVertex, StdTypeDefs<SpotLight> {
private:
friend Persistence::SelectionPtrBase<std::shared_ptr<SpotLight>>;