summaryrefslogtreecommitdiff
path: root/intermediate/forward.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-10 15:30:57 +1100
committerquou <quou@disroot.org>2025-03-10 15:31:31 +1100
commitdae6866161ca59a6b23b41ae7008411116127f76 (patch)
tree01b50cd3a661f5ab713f92cc8f9861778fd887f4 /intermediate/forward.h
parentd661b9edec77a6269a5f11de53699156e1aa3d05 (diff)
remove fragment shader branching on the light typeHEADmaster
Diffstat (limited to 'intermediate/forward.h')
-rw-r--r--intermediate/forward.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/intermediate/forward.h b/intermediate/forward.h
index 377a3cb..3bc2d50 100644
--- a/intermediate/forward.h
+++ b/intermediate/forward.h
@@ -17,9 +17,6 @@ type: vec3
name: caster_id
type: int
[variable]
-name: type
-type: int
-[variable]
name: range
type: float
@@ -40,6 +37,12 @@ type: int
[variable]
name: frame
type: int
+[variable]
+name: sun_irange
+type: ivec2
+[variable]
+name: point_irange
+type: ivec2
[cbuffer]
name: globals
@@ -48,8 +51,4 @@ stage: fragment
#endif
-/* match Light::Type in lighting.hpp */
-#define LT_SUN 0
-#define LT_POINT 1
-
#endif