skia2/tests/sksl/blend/golden/BlendDarkenStandaloneSettings.glsl

20 lines
406 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
in vec4 src, dst;
void main() {
vec4 _0_blend_darken;
{
vec4 _3_blend_src_over;
{
_3_blend_src_over = src + (1.0 - src.w) * dst;
}
vec4 _1_result = _3_blend_src_over;
_1_result.xyz = min(_1_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
_0_blend_darken = _1_result;
}
sk_FragColor = _0_blend_darken;
}