gl renderer: Fix shadow shader

We need to take the alpha of the shadow color into account as well.
This commit is contained in:
Timm Bäder 2017-12-06 17:24:58 +01:00
parent 476450b93e
commit fd0b7caa7c

View File

@ -7,7 +7,7 @@ void main() {
// pre-multiply
color.rgb *= color.a;
color = vec4(u_color.rgb * diffuse.a, diffuse.a);
color = vec4(u_color.rgb * diffuse.a, diffuse.a * color.a);
setOutputColor(color);
}