Sign in
skia
/
skia
/
67c3ee616fb5014d483c5314900eea663f10f1e3
/
.
/
tests
/
sksl
/
blend
/
BlendDifferenceStandaloneSettings.glsl
blob: 50bf6fdbf20bf50bab66e494bf05ff54f1335976 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform vec4 src
;
uniform vec4 dst
;
void
main
()
{
sk_FragColor
=
vec4
((
src
.
xyz
+
dst
.
xyz
)
-
2.0
*
min
(
src
.
xyz
*
dst
.
w
,
dst
.
xyz
*
src
.
w
),
src
.
w
+
(
1.0
-
src
.
w
)
*
dst
.
w
);
}