Bill's coming back online merge. API breaking changes!
[cl-glfw.git] / examples / synchronized-shader.frag
blob887de1358d6858875b4021ba368ec807d8dbbe52
1 uniform float time;
2 varying vec3 colour;
3 const float pi2=2.0*3.14159265;
4 void main()
6   gl_FragColor = vec4(pow(sin(colour.r*pi2*4.0+mod(time*8.0,pi2)),2.0),
7                       pow(sin(colour.g*pi2*4.0+mod(time*8.0,pi2)),2.0),
8                       pow(sin(colour.b*pi2*4.0+mod(time*8.0,pi2)),2.0),
9                       1.0);