blob: 5898c1fdd41f26d266672f86aadeb33b51026c09 [file] [log] [blame]
Courtney Goeltzenleuchter21c58b02014-10-30 10:07:20 -06001/*
2 * Vertex shader used by Cube demo.
3 */
4#version 140
5#extension GL_ARB_separate_shader_objects : enable
6#extension GL_ARB_shading_language_420pack : enable
7layout(binding = 0) uniform buf {
8 mat4 MVP;
9 vec4 position[12*3];
10 vec4 attr[12*3];
11} ubuf;
12
13layout (location = 0) out vec4 texcoord;
14void main()
15{
16 texcoord = ubuf.attr[gl_VertexID];
17 gl_Position = ubuf.MVP * ubuf.position[gl_VertexID];
18}