Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
workarounds
/
FractNegative.glsl
blob: bdc6ff3f2f41e7f91b9093dbe5451188a3c004e8 [
file
] [
log
] [
blame
]
#version 400
out
vec4 sk_FragColor
;
void
main
()
{
float
x
=
-
42.0
;
sk_FragColor
.
x
=
(
0.5
-
sign
(
x
)
*
(
0.5
-
fract
(
abs
(
x
))));
}