You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
355 B
18 lines
355 B
varying vec4 color;
|
|
|
|
uniform int button;
|
|
|
|
void main( void ) {
|
|
gl_Position = gl_Vertex;
|
|
//gl_Position.xy *= vec2(1.0, 1.2);
|
|
gl_Position.xy /= vec2(1280, 720)*0.5;
|
|
gl_Position.xy -= 1.0;
|
|
gl_Position.y *= -1.0;
|
|
|
|
if(button == 0)
|
|
color = vec4(1.0);
|
|
else if (button == 1)
|
|
color = vec4(0.1, 1.0, 0.9, 1.0);
|
|
else
|
|
color = vec4(0.0, 0.3, 1.0, 1.0);
|
|
}
|
|
|