2020-09-21 21:01:22 +00:00
|
|
|
|
2020-09-25 17:35:58 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-10-06 18:43:32 +00:00
|
|
|
in vec4 src;
|
|
|
|
in vec4 dst;
|
2020-09-25 17:35:58 +00:00
|
|
|
void main() {
|
2020-12-15 23:06:29 +00:00
|
|
|
vec4 _1_result;
|
|
|
|
_1_result = src + (1.0 - src.w) * dst;
|
2020-12-15 20:21:03 +00:00
|
|
|
|
2020-12-15 23:06:29 +00:00
|
|
|
_1_result.xyz = max(_1_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
|
2020-12-15 20:21:03 +00:00
|
|
|
|
2020-12-15 23:06:29 +00:00
|
|
|
sk_FragColor = _1_result;
|
2020-09-21 21:01:22 +00:00
|
|
|
|
|
|
|
}
|