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