blob: b9b349e4b2011ea6a68e234ae18a33fc373faf31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#version 450
const vec2 vertices[] = {
vec2(-1.0f, 3.0f),
vec2(-1.0f, -1.0f),
vec2(3.0f, -1.0f)
};
void main() {
gl_Position = vec4(vertices[gl_VertexIndex % 3], 0.0f, 1.0f);
}
|