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.
 
 
 

11 lines
307 B

#version 430
out vec4 color;
void main(void)
{
if (gl_FragCoord.x < 200)
color = vec4(1.0, 0, 1.0, 1.0);
else
color = vec4(1.0, 1.0, 0, 1.0);
// color = vec4(cos(double(gl_FragCoord.x)/30),sin(double(gl_FragCoord.y)/35),sin((double(gl_FragCoord.x)+double(gl_FragCoord.y)*2.5)/15),1.0);
}