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-28 17:13:40 +00:00
|
|
|
void main() {
|
2020-10-13 15:19:41 +00:00
|
|
|
vec4 _0_blend_overlay;
|
2020-09-21 21:19:56 +00:00
|
|
|
{
|
2020-11-18 20:38:39 +00:00
|
|
|
float _1_1_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-11-18 20:38:39 +00:00
|
|
|
_1_1_blend_overlay_component = 2.0 * dst.x <= dst.w ? (2.0 * src.x) * dst.x : src.w * dst.w - (2.0 * (dst.w - dst.x)) * (src.w - src.x);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-11-18 20:38:39 +00:00
|
|
|
float _2_75_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-11-18 20:38:39 +00:00
|
|
|
_2_75_blend_overlay_component = 2.0 * dst.y <= dst.w ? (2.0 * src.y) * dst.y : src.w * dst.w - (2.0 * (dst.w - dst.y)) * (src.w - src.y);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-11-18 20:38:39 +00:00
|
|
|
float _3_79_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-11-18 20:38:39 +00:00
|
|
|
_3_79_blend_overlay_component = 2.0 * dst.z <= dst.w ? (2.0 * src.z) * dst.z : src.w * dst.w - (2.0 * (dst.w - dst.z)) * (src.w - src.z);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-11-18 20:38:39 +00:00
|
|
|
vec4 _4_result = vec4(_1_1_blend_overlay_component, _2_75_blend_overlay_component, _3_79_blend_overlay_component, src.w + (1.0 - src.w) * dst.w);
|
2020-09-21 21:19:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-11-18 20:38:39 +00:00
|
|
|
_4_result.xyz += dst.xyz * (1.0 - src.w) + src.xyz * (1.0 - dst.w);
|
|
|
|
_0_blend_overlay = _4_result;
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-10-13 15:19:41 +00:00
|
|
|
sk_FragColor = _0_blend_overlay;
|
2020-09-28 17:13:40 +00:00
|
|
|
|
2020-09-21 21:01:22 +00:00
|
|
|
}
|