Sign in
skia
/
skia
/
ed92d84ffd3aeb34c92e25ecb082f089703fc0ec
/
.
/
tests
/
sksl
/
realistic
/
HSLColorFilter.minified.sksl
blob: d742fcdb32b773c79f3449522abd184135a9b9d0 [
file
] [
log
] [
blame
]
half4 main
(
half4 a
){
half b
=(
1.
-
abs
(
2.
*
a
.
z
-
1.
))*
a
.
y
;
half3 c
=
a
.
xxx
+
half3
(
0.
,.
6666667
,.
333333343
);
half3 d
=
saturate
(
abs
(
fract
(
c
)*
6.
-
3.
)-
1.
);
return
half4
((
d
-.
5
)*
b
+
a
.
z
,
1.
);}