From 725486c1d00ecb422b3e101aae53f351ed201309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Thu, 28 Oct 2021 17:03:02 +0200 Subject: [PATCH] Fix upside-down chunk tex --- code/game/src/renderer_v0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/src/renderer_v0.c b/code/game/src/renderer_v0.c index 89d2ee2..445be5b 100644 --- a/code/game/src/renderer_v0.c +++ b/code/game/src/renderer_v0.c @@ -19,7 +19,7 @@ void DEBUG_draw_ground(uint64_t key, entity_view * data) { float y = data->y * size + offset; RenderTexture2D tex = GetChunkTexture(key); - DrawTextureEx(tex.texture, (Vector2){x, y}, 0.0f, size / (float)tex.texture.width, ColorAlpha(WHITE, data->tran_time)); + DrawTextureEx(tex.texture, (Vector2){x, y}, 0.0f, -(size / (float)tex.texture.width), ColorAlpha(WHITE, data->tran_time)); if (zoom_overlay_tran > 0.02f) { DrawRectangleEco(x, y, size-offset, size-offset, ColorAlpha(ColorFromHSV(data->color, 0.13f, 0.89f), data->tran_time*zoom_overlay_tran*0.75f));