Sign in
skia
/
skia
/
0fd7d8de83be5f376848f003d34de639195be3bf
/
.
/
tests
/
sksl
/
blend
/
BlendDarken.glsl
blob: b78f9a12523d4eb4b903117c62d85a86309223f6 [
file
] [
log
] [
blame
]
#version 400
out
vec4 sk_FragColor
;
uniform vec4 src
;
uniform vec4 dst
;
void
main
()
{
vec4 _0_a
=
src
+
(
1.0
-
src
.
w
)
*
dst
;
vec3 _1_b
=
(
1.0
-
dst
.
w
)
*
src
.
xyz
+
dst
.
xyz
;
_0_a
.
xyz
=
min
(
_0_a
.
xyz
,
_1_b
);
sk_FragColor
=
_0_a
;
}