From 3f886bfe5d34d8cae2fcea5bab7cde8d7edd996c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 3 May 2026 11:19:14 +0200 Subject: [PATCH] plugin example: invert y axis --- plugin/examples/hello_triangle/triangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/examples/hello_triangle/triangle.c b/plugin/examples/hello_triangle/triangle.c index 4c18f20..194cf92 100644 --- a/plugin/examples/hello_triangle/triangle.c +++ b/plugin/examples/hello_triangle/triangle.c @@ -8,7 +8,7 @@ const char vertex_shader_source[] = "attribute vec4 vertex_pos; \n" "void main() { \n" - " gl_Position = vertex_pos; \n" + " gl_Position = vec4(vertex_pos.x, -vertex_pos.y, vertex_pos.z, vertex_pos.w); \n" "}"; const char fragment_shader_source[] =