diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-05-03 11:19:14 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-05-03 11:19:14 +0200 |
| commit | 3f886bfe5d34d8cae2fcea5bab7cde8d7edd996c (patch) | |
| tree | de0450bd2f9a919c6d4c4446fde285d303a7e7b1 /plugin/examples | |
| parent | d0f59dbd8bf1cb6d8c3121ed2ff5bd83193e6bdb (diff) | |
plugin example: invert y axis
Diffstat (limited to 'plugin/examples')
| -rw-r--r-- | plugin/examples/hello_triangle/triangle.c | 2 |
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[] = |
