diff options
author | Chia-I Wu <olv@lunarg.com> | 2015-04-22 14:56:17 +0800 |
---|---|---|
committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-04-30 17:09:34 -0600 |
commit | c3487c272a160e78f7f4e62f4869ab96b623d276 (patch) | |
tree | 57f21a0c8e8d3e3c5f8e6b5da4c2eb990f944214 /demos/cube.vert | |
parent | c414ba88c6216ad5b525552b6007dc45ecc7e3eb (diff) |
demos/cube: use GL conventions
Use GL conventions in vertex data and contents. Tranform to VK conventions
in the vertex shader with
gl_Position.y = -gl_Position.y;
Diffstat (limited to 'demos/cube.vert')
-rw-r--r-- | demos/cube.vert | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/cube.vert b/demos/cube.vert index 5898c1fd..672bcced 100644 --- a/demos/cube.vert +++ b/demos/cube.vert @@ -15,4 +15,7 @@ void main() { texcoord = ubuf.attr[gl_VertexID]; gl_Position = ubuf.MVP * ubuf.position[gl_VertexID]; + + // GL->VK conventions + gl_Position.y = -gl_Position.y; } |