summaryrefslogtreecommitdiff
path: root/intermediate/forward.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-10 15:03:05 +1100
committerquou <quou@disroot.org>2025-03-10 15:03:05 +1100
commit37b929e148e5b003f68903eb9ee192d24517e683 (patch)
tree79c39617fa73ddc95f30f0ff2c86b5b81c6de0bc /intermediate/forward.h
parent075e530b9964d1eb000dded329d2e8d80ee277c3 (diff)
point light
Diffstat (limited to 'intermediate/forward.h')
-rw-r--r--intermediate/forward.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/intermediate/forward.h b/intermediate/forward.h
index 7c4c9d3..377a3cb 100644
--- a/intermediate/forward.h
+++ b/intermediate/forward.h
@@ -5,7 +5,7 @@
[struct]
name: Light
[variable]
-name: dir
+name: pos
type: vec3
[variable]
name: brightness
@@ -16,6 +16,12 @@ type: vec3
[variable]
name: caster_id
type: int
+[variable]
+name: type
+type: int
+[variable]
+name: range
+type: float
[struct]
name: Caster
@@ -41,4 +47,9 @@ type: Globals
stage: fragment
#endif
+
+/* match Light::Type in lighting.hpp */
+#define LT_SUN 0
+#define LT_POINT 1
+
#endif