testCommit

This commit is contained in:
=
2017-11-22 16:00:56 +01:00
parent 9a2353b01c
commit 3324056634
13 changed files with 279 additions and 117 deletions

View File

@ -11,9 +11,9 @@ vec3 saturateColor(in vec3 color, in float a);
void main() {
float a = texture2D(texture, pass_TexCoords).a * alpha;
gl_FragColor = vec4(color, a);
vec3 black = vec3(0.0, 0.0, 0.0);
gl_FragColor.rgb = mix(color, black, 1.0 - gl_FragColor.a);
gl_FragColor.rgb = mix(color, black, 1.0 - a);
gl_FragColor.a = a;
}