blob: 03331473de14ce08d87d03b18b8e5342723503f5 [file] [log] [blame]
out vec4 sk_FragColor;
uniform vec4 colorGreen;
uniform vec4 colorRed;
uniform vec4 testInputs;
vec4 main() {
uint xy = packUnorm2x16(testInputs.xy);
uint zw = packUnorm2x16(testInputs.zw);
const vec2 tolerance = vec2(0.015625);
return all(lessThan(abs(unpackUnorm2x16(xy)), tolerance)) && all(lessThan(abs(unpackUnorm2x16(zw) - vec2(0.75, 1.0)), tolerance)) ? colorGreen : colorRed;
}