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
@@ -0,0 +1,9 @@
varying vec2 uv;
uniform sampler2D texture;
uniform float selected;
void main() {
vec4 col = vec4(gl_Color.rgb * texture2D(texture,uv).a, gl_Color.a * texture2D(texture,uv).g);
col.rgb = mix(col.rgb, vec3(1.0, 1.0, 1.0), selected * 0.5);
gl_FragColor = col;
}