OpenGL练习
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.
 
 
 

9 lines
232 B

#version 430
void main(void)
{
if (gl_VertexID == 0) gl_Position = vec4( 0.25, -0.25, 0.0, 1.0);
else if (gl_VertexID == 1) gl_Position = vec4(-0.25, -0.25, 0.0, 1.0);
else gl_Position = vec4( 0.25, 0.25, 0.0, 1.0);
}