summary refs log tree commit diff
path: root/src/World/Clouds.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-12 22:57:53 +0200
committerMel <einebeere@gmail.com>2023-07-12 22:58:34 +0200
commitc0556f76fc5c8271c2eaa7ca91ad1c92c691d8bc (patch)
treea7c10af8e912ae0fa4aec58b15d8a6496a288e4d /src/World/Clouds.hpp
parentf09e5791837bb003f7c5db8c0e3162636bc9a9c2 (diff)
downloadmeowcraft-c0556f76fc5c8271c2eaa7ca91ad1c92c691d8bc.tar.zst
meowcraft-c0556f76fc5c8271c2eaa7ca91ad1c92c691d8bc.zip
Δt calculation and usage
Diffstat (limited to 'src/World/Clouds.hpp')
-rw-r--r--src/World/Clouds.hpp3
1 files changed, 2 insertions, 1 deletions
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;