vulkan: Fix mask shader to premultiply color

The inColor wasn't premultiplied, so the resulting colors were wrong
with translucent borders.
This commit is contained in:
Benjamin Otte 2017-12-01 14:44:09 +01:00
parent abc8d61730
commit 9048d40bc2
4 changed files with 1 additions and 1 deletions

View File

@ -12,5 +12,5 @@ layout(location = 0) out vec4 color;
void main()
{
color = clip (inPos, vec4(inColor.rgb, texture(inTexture, inTexCoord).a));
color = clip (inPos, vec4(inColor.rgb * inColor.a, inColor.a) * texture(inTexture, inTexCoord).a);
}

Binary file not shown.