From dae6866161ca59a6b23b41ae7008411116127f76 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 10 Mar 2025 15:30:57 +1100 Subject: remove fragment shader branching on the light type --- lighting.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lighting.hpp') 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; -- cgit v1.2.3-54-g00ecf