1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5vec4 main() { 6 bvec4 inputVal = bvec4(colorRed.xxzw); 7 bvec4 expected = bvec4(colorRed.xyzz); 8 return ((((all(inputVal.xy) == expected.x && all(inputVal.xyz) == expected.y) && all(inputVal) == expected.z) && expected.x) && false == expected.y) && false == expected.z ? colorGreen : colorRed; 9} 10