Sign in
skia
/
skia
/
67c3ee616fb5014d483c5314900eea663f10f1e3
/
.
/
tests
/
sksl
/
blend
/
BlendMultiply.glsl
blob: 520b054f7f34547e95b3975926e900cae8dd8e2f [
file
] [
log
] [
blame
]
#version 400
out
vec4 sk_FragColor
;
uniform vec4 src
;
uniform vec4 dst
;
void
main
()
{
sk_FragColor
=
vec4
(((
1.0
-
src
.
w
)
*
dst
.
xyz
+
(
1.0
-
dst
.
w
)
*
src
.
xyz
)
+
src
.
xyz
*
dst
.
xyz
,
src
.
w
+
(
1.0
-
src
.
w
)
*
dst
.
w
);
}