aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin/examples/hello_triangle
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-05-03 11:19:14 +0200
committerdec05eba <dec05eba@protonmail.com>2026-05-03 11:19:14 +0200
commit3f886bfe5d34d8cae2fcea5bab7cde8d7edd996c (patch)
treede0450bd2f9a919c6d4c4446fde285d303a7e7b1 /plugin/examples/hello_triangle
parentd0f59dbd8bf1cb6d8c3121ed2ff5bd83193e6bdb (diff)
plugin example: invert y axis
Diffstat (limited to 'plugin/examples/hello_triangle')
-rw-r--r--plugin/examples/hello_triangle/triangle.c2
1 files changed, 1 insertions, 1 deletions
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[] =