The prototype of Zen Zoom. Made on ubuntu, I guess.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 

17 lines
317 B

varying vec4 color;
uniform int button;
void main( void ) {
gl_Position = gl_Vertex;
gl_Position.xy /= vec2(800, 600)*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.0, 1.0, 1.0, 1.0);
else
color = vec4(0.0, 0.0, 1.0, 1.0);
}