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
+9
View File
@@ -0,0 +1,9 @@
varying vec2 uv;
uniform sampler2D texture;
void main() {
vec3 sample = texture2D(texture,uv).rgb;
gl_FragColor.rgb = ((sample - vec3(0.5)) * 2.0 + gl_Color.rgb) * gl_Color.a;
//gl_FragColor.rgb = (sample * 2.0 * gl_Color.rgb) * gl_Color.a;
gl_FragColor.a = 0.0;
}