blob: 3f1406c6b9ce85fcbe21a375afcfabff188c088a [file] [log] [blame]
out vec4 sk_FragColor;
in vec4 src;
in vec4 dst;
void main() {
sk_FragColor = vec4((src.xyz + dst.xyz) - 2.0 * min(src.xyz * dst.w, dst.xyz * src.w), src.w + (1.0 - src.w) * dst.w);
}