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

14 lines
237 B
Plaintext
Raw Normal View History

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