summaryrefslogtreecommitdiff
path: root/gfx/gl
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 /gfx/gl
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 'gfx/gl')
-rw-r--r--gfx/gl/lights.h16
1 files changed, 16 insertions, 0 deletions
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 { };