From 0889f3f6d7b96c6f6d186ca8fa7f4e9e0ec9c701 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 24 Oct 2024 03:10:08 +0100 Subject: Improve sun illumination based on angular size and astronomical twilight --- gfx/lightDirection.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gfx/lightDirection.h') diff --git a/gfx/lightDirection.h b/gfx/lightDirection.h index f1e1cc4..789830b 100644 --- a/gfx/lightDirection.h +++ b/gfx/lightDirection.h @@ -20,13 +20,20 @@ public: } [[nodiscard]] float - vertical() const noexcept + ambient() const noexcept { - return vert; + return amb; + } + + [[nodiscard]] float + directional() const noexcept + { + return dir; } private: Direction2D pos; Direction3D vec; - float vert; + float amb; + float dir; }; -- cgit v1.2.3