diff options
| author | Mel <einebeere@gmail.com> | 2023-07-29 03:31:42 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2023-07-29 03:31:42 +0200 |
| commit | 6b69d4b5b648253f894707723af0e2eae9f71445 (patch) | |
| tree | 0cd0b6c7b18c30abbb2618f553f144d1d06dacba /src/World/Clouds.hpp | |
| parent | 2eef7cf49b7a15559ee7bb6719411bcf67386213 (diff) | |
| download | meowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.tar.zst meowcraft-6b69d4b5b648253f894707723af0e2eae9f71445.zip | |
Move chunk reification to worker threads and set stage for chunk-unbound lighting
Diffstat (limited to 'src/World/Clouds.hpp')
| -rw-r--r-- | src/World/Clouds.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/World/Clouds.hpp b/src/World/Clouds.hpp index 35e7155..4bd0637 100644 --- a/src/World/Clouds.hpp +++ b/src/World/Clouds.hpp @@ -1,10 +1,10 @@ #pragma once #include "../Time.hpp" -#include "../GFX/Binder.hpp" #include "../GFX/Shading/Program.hpp" #include "../GFX/Shading/Uniform.hpp" #include "../GFX/Camera.hpp" +#include "../GFX/Mesh.hpp" namespace MC::World { @@ -13,7 +13,7 @@ public: Clouds(Real ascept, Real fov, Real near, Real far, Vector<3, F32> sky_color, Vector<3, F32> sun_direction); void update(const Time& time); - void render(const GFX::Camera& camera) const; + void render(const GFX::Camera& camera); private: constexpr static U32 CloudMatrixSize = 128; constexpr static Int Height = 200; @@ -22,7 +22,7 @@ private: using CloudMatrix = Matrix<CloudMatrixSize, CloudMatrixSize, Bool>; - void render_single_instance(const GFX::Camera& camera, Int x, Int y) const; + void render_single_instance(const GFX::Camera& camera, Int x, Int y); static CloudMatrix create_cloud_matrix(); static GFX::Mesh create_mesh(const CloudMatrix& cloud_matrix); @@ -33,7 +33,7 @@ private: Real m_x_offset = 0.0; GFX::Shading::Program m_program; - GFX::BindableMesh m_mesh; + GFX::Mesh m_mesh; GFX::Shading::Uniform m_model_uniform; GFX::Shading::Uniform m_view_uniform; |
