1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5uniform vec4 testInputs; 6vec4 main() { 7 uint xy = packUnorm2x16(testInputs.xy); 8 uint zw = packUnorm2x16(testInputs.zw); 9 const vec2 tolerance = vec2(0.015625); 10 return all(lessThan(abs(unpackUnorm2x16(xy)), tolerance)) && all(lessThan(abs(unpackUnorm2x16(zw) - vec2(0.75, 1.0)), tolerance)) ? colorGreen : colorRed; 11} 12