From be420352eb185dbd9e8061cf8915da389657485a Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 3 Dec 2025 22:45:34 +0300 Subject: [PATCH] increase moon sprite distance --- src/graphics/render/Skybox.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/graphics/render/Skybox.cpp b/src/graphics/render/Skybox.cpp index eb90feef..149acb10 100644 --- a/src/graphics/render/Skybox.cpp +++ b/src/graphics/render/Skybox.cpp @@ -134,16 +134,16 @@ void Skybox::draw( DrawContext ctx = pctx.sub(); ctx.setBlendMode(BlendMode::addition); - auto p_shader = assets.get("ui3d"); - p_shader->use(); - p_shader->uniformMatrix("u_projview", camera.getProjView(false)); - p_shader->uniformMatrix("u_apply", glm::mat4(1.0f)); + auto shader = assets.get("ui3d"); + shader->use(); + shader->uniformMatrix("u_projview", camera.getProjView(false)); + shader->uniformMatrix("u_apply", glm::mat4(1.0f)); batch3d->begin(); float angle = daytime * glm::pi() * 2.0f; float opacity = glm::pow(1.0f - fog, 7.0f); - float depthScale = 1e3; + float depthScale = 2e3; for (auto& sprite : sprites) { batch3d->texture(assets.get(sprite.texture));