Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
uniform float tOffset;
uniform float time[2];
const float twopi = 6.2828;
const float range = 0.25;
varying vec2 uv;
void main() {
uv = gl_MultiTexCoord0.xy;
gl_Position = ftransform();
vec4 col = gl_Color * ((1.0 - range) + range * sin((time[0] + tOffset) * twopi) * cos((time[1] + tOffset) * twopi));
gl_FrontColor = col;
gl_BackColor = col;
}