2020-09-21 21:01:22 +00:00
|
|
|
#version 400
|
2020-09-25 17:35:58 +00:00
|
|
|
out vec4 sk_FragColor;
|
|
|
|
in vec4 src, dst;
|
2020-09-28 17:13:40 +00:00
|
|
|
void main() {
|
|
|
|
vec4 _0_blend_hard_light;
|
2020-09-21 21:19:56 +00:00
|
|
|
{
|
2020-09-29 20:57:55 +00:00
|
|
|
vec4 _3_blend_overlay;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-09-29 20:57:55 +00:00
|
|
|
float _5_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-09-29 20:57:55 +00:00
|
|
|
_5_blend_overlay_component = 2.0 * src.x <= src.w ? (2.0 * dst.x) * src.x : dst.w * src.w - (2.0 * (src.w - src.x)) * (dst.w - dst.x);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-09-29 20:57:55 +00:00
|
|
|
float _6_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-09-29 20:57:55 +00:00
|
|
|
_6_blend_overlay_component = 2.0 * src.y <= src.w ? (2.0 * dst.y) * src.y : dst.w * src.w - (2.0 * (src.w - src.y)) * (dst.w - dst.y);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-09-29 20:57:55 +00:00
|
|
|
float _7_blend_overlay_component;
|
2020-09-28 17:13:40 +00:00
|
|
|
{
|
2020-09-29 20:57:55 +00:00
|
|
|
_7_blend_overlay_component = 2.0 * src.z <= src.w ? (2.0 * dst.z) * src.z : dst.w * src.w - (2.0 * (src.w - src.z)) * (dst.w - dst.z);
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-09-29 20:57:55 +00:00
|
|
|
vec4 _4_result = vec4(_5_blend_overlay_component, _6_blend_overlay_component, _7_blend_overlay_component, dst.w + (1.0 - dst.w) * src.w);
|
2020-09-21 21:01:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2020-09-29 20:57:55 +00:00
|
|
|
_4_result.xyz += src.xyz * (1.0 - dst.w) + dst.xyz * (1.0 - src.w);
|
|
|
|
_3_blend_overlay = _4_result;
|
2020-09-28 17:13:40 +00:00
|
|
|
}
|
2020-09-29 20:57:55 +00:00
|
|
|
_0_blend_hard_light = _3_blend_overlay;
|
2020-09-28 17:13:40 +00:00
|
|
|
|
2020-09-21 21:01:22 +00:00
|
|
|
}
|
|
|
|
|
2020-09-25 17:35:58 +00:00
|
|
|
sk_FragColor = _0_blend_hard_light;
|
2020-09-21 21:01:22 +00:00
|
|
|
|
|
|
|
}
|