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;
uniform float level;
const vec3 gray = vec3(0.30, 0.59, 0.11);
void main() {
vec4 color = texture2D(texture, uv);
gl_FragColor.rgb = mix(vec3(dot(gray, color.rgb * gl_Color.rgb)), color.rgb * gl_Color.rgb, level);
gl_FragColor.a = color.a * gl_Color.a;
}