From 19a60a6e6989d8e2f1c542eb918071f853039f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bekir=20G=C3=BClestan?= Date: Mon, 20 Jan 2025 03:22:46 -0600 Subject: [PATCH] Fix ui_batched calculation error --- resources/shaders/ui_batched.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/shaders/ui_batched.vert b/resources/shaders/ui_batched.vert index fee6314..169f33b 100644 --- a/resources/shaders/ui_batched.vert +++ b/resources/shaders/ui_batched.vert @@ -13,7 +13,7 @@ out vec4 Color; void main() { - vec2 pos = (aPos + aCursorPos) * aSize; + vec2 pos = (aPos * aSize) + aCursorPos; gl_Position = uProjection * vec4(pos, 0.0, 1.0); Color = aColor; } \ No newline at end of file