blob: ed731cd7b6d7b41c05100c68eaf16617ce49f116 [file] [log] [blame]
uniform half4 input;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(3, 0, 4, 12);
half4 expected = half4(3, 3, 5, 13);
return (length(input.x) == expected.x &&
length(input.xy) == expected.y &&
length(input.xyz) == expected.z &&
length(input.xyzw) == expected.w &&
length(constVal.x) == expected.x &&
length(constVal.xy) == expected.y &&
length(constVal.xyz) == expected.z &&
length(constVal.xyzw) == expected.w) ? colorGreen : colorRed;
}