shader compiler: add new VertexIndex
authorGregF <greg@LunarG.com>
Wed, 20 Jan 2016 23:37:18 +0000 (16:37 -0700)
committerGregF <greg@LunarG.com>
Thu, 21 Jan 2016 17:04:29 +0000 (10:04 -0700)
LunarGLASS_revision_R32
demos/cube.vert

index 70829ad..87729e5 100644 (file)
@@ -18,8 +18,8 @@ out gl_PerVertex {
 
 void main() 
 {
-   texcoord = ubuf.attr[gl_VertexID];
-   gl_Position = ubuf.MVP * ubuf.position[gl_VertexID];
+   texcoord = ubuf.attr[gl_VertexIndex];
+   gl_Position = ubuf.MVP * ubuf.position[gl_VertexIndex];
 
    // GL->VK conventions
    gl_Position.y = -gl_Position.y;