From 37b929e148e5b003f68903eb9ee192d24517e683 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 10 Mar 2025 15:03:05 +1100 Subject: point light --- lighting.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lighting.hpp') diff --git a/lighting.hpp b/lighting.hpp index ccd08d3..38e95ae 100644 --- a/lighting.hpp +++ b/lighting.hpp @@ -41,6 +41,11 @@ struct Lighting { }; struct Light { + enum class Type { + sun, + point + }; + v3f colour; float brightness; bool caster; @@ -50,4 +55,8 @@ struct Sun_Light : Light { v3f dir; }; +struct Point_Light : Light { + float range; +}; + #endif -- cgit v1.2.3-54-g00ecf