skia2/tests/sksl/workarounds/FractNegative.glsl

7 lines
135 B
Plaintext
Raw Normal View History

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