Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
runtime
/
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.
);}