skia2/tests/sksl/workarounds/FractNegative.glsl

6 lines
122 B
Plaintext
Raw Normal View History

#version 400
out vec4 sk_FragColor;
void main() {
sk_FragColor.x = (0.5 - sign(-42.0) * (0.5 - fract(abs(-42.0))));
}