blob: 66301e13855cb5e1bf3e2ad8646ff6d9380e873b [file] [log] [blame]
out vec4 sk_FragColor;
uniform vec4 testInputs;
uniform vec4 colorGreen;
uniform vec4 colorRed;
vec4 main() {
const vec4 expectedA = vec4(-1.0, 0.0, 0.0, 2.0);
return ((trunc(testInputs.x) == -1.0 && trunc(testInputs.xy) == vec2(-1.0, 0.0)) && trunc(testInputs.xyz) == vec3(-1.0, 0.0, 0.0)) && trunc(testInputs) == expectedA ? colorGreen : colorRed;
}