From 6b69d4b5b648253f894707723af0e2eae9f71445 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 29 Jul 2023 03:31:42 +0200 Subject: Move chunk reification to worker threads and set stage for chunk-unbound lighting --- src/World/Clouds.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/World/Clouds.hpp') 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; - 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; -- cgit 1.4.1