Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 450
- out VS_OUT
- {
- vec2 uv;
- } vs_out;
- out gl_PerVertex
- {
- vec4 gl_Position;
- };
- const vec2 g_positions[6] =
- {
- { -1, -1 },
- { 1, -1 },
- { 1, 1 },
- { 1, 1 },
- { -1, 1 },
- { -1, -1 }
- };
- const vec2 g_uv[6] =
- {
- { 0, 0 },
- { 1, 0 },
- { 1, 1 },
- { 1, 1 },
- { 0, 1 },
- { 0, 0 }
- };
- void main()
- {
- vs_out.uv = g_uv[gl_VertexIndex];
- gl_Position = vec4(g_positions[gl_VertexIndex], 0, 1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement