summaryrefslogtreecommitdiff
path: root/intermediate/forward.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-02-22 18:16:05 +1100
committerquou <quou@disroot.org>2025-02-22 18:16:37 +1100
commitab9ed1ccadbd2c1b971bfbfb5ee651aa03a4a63e (patch)
treef08cddeb3f6ecb668dbac536d0ee2c533b0a55ee /intermediate/forward.h
parentb10d6e5857481d4b018547c66585fd4f84a85937 (diff)
shader globals
Diffstat (limited to 'intermediate/forward.h')
-rw-r--r--intermediate/forward.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/intermediate/forward.h b/intermediate/forward.h
new file mode 100644
index 0000000..7c4c9d3
--- /dev/null
+++ b/intermediate/forward.h
@@ -0,0 +1,44 @@
+#ifndef forward_h
+#define forward_h
+#ifdef DESC
+
+[struct]
+name: Light
+[variable]
+name: dir
+type: vec3
+[variable]
+name: brightness
+type: float
+[variable]
+name: colour
+type: vec3
+[variable]
+name: caster_id
+type: int
+
+[struct]
+name: Caster
+[variable]
+name: projection
+type: mat4
+
+[struct]
+name: Globals
+[variable]
+name: camera_pos
+type: vec3
+[variable]
+name: light_count
+type: int
+[variable]
+name: frame
+type: int
+
+[cbuffer]
+name: globals
+type: Globals
+stage: fragment
+
+#endif
+#endif