Sign in
skia
/
skia
/
be82005209c06840f0d5b13156d160a3e0efe702
/
.
/
tests
/
sksl
/
blend
/
BlendDifference.glsl
blob: b0953c94bbb9fd1ce8d825879b826ded41dbd5e4 [
file
] [
log
] [
blame
]
#version 400
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
);
}