summaryrefslogtreecommitdiff
path: root/lighting.hpp
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 /lighting.hpp
parentd661b9edec77a6269a5f11de53699156e1aa3d05 (diff)
remove fragment shader branching on the light typeHEADmaster
Diffstat (limited to 'lighting.hpp')
-rw-r--r--lighting.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lighting.hpp b/lighting.hpp
index 38e95ae..7c57bab 100644
--- a/lighting.hpp
+++ b/lighting.hpp
@@ -21,6 +21,8 @@ struct Lighting {
Texture_Id shadow_slices[max_shadows];
Sampler_Id shadow_sampler;
Camera_Id cameras[max_shadows];
+ int sun_range[2];
+ int point_range[2];
int light_count, caster_count;
void init(Device* dev);
void destroy(Device* dev, Renderer& r);
@@ -41,11 +43,6 @@ struct Lighting {
};
struct Light {
- enum class Type {
- sun,
- point
- };
-
v3f colour;
float brightness;
bool caster;