Sign in
skia
/
skia
/
67c3ee616fb5014d483c5314900eea663f10f1e3
/
.
/
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
;
}