summaryrefslogtreecommitdiff
path: root/gfx/gl/lights.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/lights.h')
-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 { };