blob: ac655e7f312d4f2f08aaf88b52e65d36b5aa0982 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#version 300 es
precision lowp float;
// A triangle that fills the whole screen
const vec2[3] TRIANGLE_POS = vec2[](
vec2( 0.0, -3.0),
vec2(-3.0, 1.0),
vec2( 3.0, 1.0)
);
void main() {
gl_Position = vec4(TRIANGLE_POS[gl_VertexID], 0.0, 1.0);
}
|