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