Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
21 lines (16 sloc) 0.447 kb
#version 110
uniform float timer;
attribute vec4 position;
varying vec2 texcoord;
varying float fade_factor;
void main()
{
mat3 rotation = mat3(
vec3( cos(timer), sin(timer), 0.0),
vec3(-sin(timer), cos(timer), 0.0),
vec3( 0.0, 0.0, 1.0)
);
gl_Position = vec4(rotation * position.xyz, 1.0);
texcoord = position.xy * vec2(0.5) + vec2(0.5);
fade_factor = sin(timer) * 0.5 + 0.5;
}
Jump to Line
Something went wrong with that request. Please try again.