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.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/World/Clouds.cpp') diff --git a/src/World/Clouds.cpp b/src/World/Clouds.cpp index 2e0f76c..2567985 100644 --- a/src/World/Clouds.cpp +++ b/src/World/Clouds.cpp @@ -15,7 +15,7 @@ Clouds::Clouds(Real ascept, Real fov, Real near, Real far, Vector<3, F32> sky_co {GFX::Shading::Shader::Type::Vertex, vertex}, {GFX::Shading::Shader::Type::Fragment, fragment} ), - m_mesh(GFX::Binder::load(create_mesh(create_cloud_matrix()))), + m_mesh(create_mesh(create_cloud_matrix())), m_model_uniform(), m_view_uniform(), m_projection_uniform() { m_program.bind(); @@ -38,7 +38,7 @@ void Clouds::update(const Time& time) { m_x_offset += 5.0 * time.delta(); } -void Clouds::render(const GFX::Camera& camera) const { +void Clouds::render(const GFX::Camera& camera) { auto position = camera.position(); I32 center_x = std::round((position.x() - m_x_offset) / TileSize); @@ -51,7 +51,7 @@ void Clouds::render(const GFX::Camera& camera) const { } } -void Clouds::render_single_instance(const GFX::Camera& camera, Int x, Int y) const { +void Clouds::render_single_instance(const GFX::Camera& camera, Int x, Int y) { Vector<3> position{TileSize * x + m_x_offset, Height, TileSize * y}; m_program.bind(); -- cgit 1.4.1