From c29c04aa3caf6487b127c87dc42fc293f354a85d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 31 Mar 2026 00:45:41 +0100 Subject: Move light vertex structs out --- game/scenary/illuminator.h | 14 +------------- gfx/gl/lights.h | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 13 deletions(-) create mode 100644 gfx/gl/lights.h 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 { private: friend Persistence::SelectionPtrBase>; diff --git a/gfx/gl/lights.h b/gfx/gl/lights.h new file mode 100644 index 0000000..3247e25 --- /dev/null +++ b/gfx/gl/lights.h @@ -0,0 +1,16 @@ +#pragma once + +#include "config/types.h" + +struct LightCommonVertex { + RelativePosition3D position; + RGB colour; + RelativeDistance kq; +}; + +struct SpotLightVertex : LightCommonVertex { + Direction3D direction; + Angle arc; +}; + +struct PointLightVertex : LightCommonVertex { }; -- cgit v1.3