371fde549e
I realized that "DefaultSettings" as a name suffix was unclear, because "Default" is a different settings mode from skslc running with --nosettings. In --nosettings mode, skslc uses "standalone" settings. Change-Id: I1f5d80df0a21cec55948c4ad146169bcb34f4999 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/318210 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
32 lines
729 B
GLSL
32 lines
729 B
GLSL
|
|
uniform vec4 src, dst;
|
|
vec4 blend_src_over(vec4 src, vec4 dst) {
|
|
return src + (1.0 - src.w) * dst;
|
|
}
|
|
vec4 blend_lighten(vec4 src, vec4 dst) {
|
|
vec4 _2_blend_src_over;
|
|
{
|
|
_2_blend_src_over = src + (1.0 - src.w) * dst;
|
|
}
|
|
vec4 result = _2_blend_src_over;
|
|
|
|
result.xyz = max(result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
|
|
return result;
|
|
}
|
|
vec4 main() {
|
|
vec4 _0_blend_lighten;
|
|
{
|
|
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 = max(_1_result.xyz, (1.0 - dst.w) * src.xyz + dst.xyz);
|
|
_0_blend_lighten = _1_result;
|
|
}
|
|
|
|
return _0_blend_lighten;
|
|
|
|
}
|