forked from AuroraMiddleware/gtk
gl renderer: Fix shadow shader
We need to take the alpha of the shadow color into account as well.
This commit is contained in:
parent
476450b93e
commit
fd0b7caa7c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user