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
+10
View File
@@ -0,0 +1,10 @@
varying vec2 uv;
uniform sampler2D texture;
void main() {
float a = pow(min(uv.y, 1.0 - uv.y), 0.3);
vec4 texCol = texture2D(texture,uv);
gl_FragColor.rgb = gl_Color.rgb * texCol.rgb;
gl_FragColor.a = a * gl_Color.a * texCol.a;
}