From c0556f76fc5c8271c2eaa7ca91ad1c92c691d8bc Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Jul 2023 22:57:53 +0200 Subject: Δt calculation and usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/World/Clouds.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/World/Clouds.hpp') diff --git a/src/World/Clouds.hpp b/src/World/Clouds.hpp index b2d5a10..35e7155 100644 --- a/src/World/Clouds.hpp +++ b/src/World/Clouds.hpp @@ -1,5 +1,6 @@ #pragma once +#include "../Time.hpp" #include "../GFX/Binder.hpp" #include "../GFX/Shading/Program.hpp" #include "../GFX/Shading/Uniform.hpp" @@ -11,7 +12,7 @@ class Clouds { public: Clouds(Real ascept, Real fov, Real near, Real far, Vector<3, F32> sky_color, Vector<3, F32> sun_direction); - void update(U64 time); + void update(const Time& time); void render(const GFX::Camera& camera) const; private: constexpr static U32 CloudMatrixSize = 128; -- cgit 1.4.1