Skip to content

Commit

Permalink
Fix ui_batched calculation error
Browse files Browse the repository at this point in the history
  • Loading branch information
bekogeko committed Jan 20, 2025
1 parent b55d253 commit 19a60a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/shaders/ui_batched.vert
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 19a60a6

Please sign in to comment.