1uniform half4 testInputs; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 int4 intValues = int4(testInputs * 100); 6 int4 intGreen = int4(colorGreen * 100); 7 8 int4 expectedA = int4(50, 50, 75, 225); 9 int4 expectedB = int4(0, 100, 75, 225); 10 return (max(intValues.x, 50) == expectedA.x && 11 max(intValues.xy, 50) == expectedA.xy && 12 max(intValues.xyz, 50) == expectedA.xyz && 13 max(intValues.xyzw, 50) == expectedA.xyzw && 14 max(intValues.x, intGreen.x) == expectedB.x && 15 max(intValues.xy, intGreen.xy) == expectedB.xy && 16 max(intValues.xyz, intGreen.xyz) == expectedB.xyz && 17 max(intValues.xyzw, intGreen.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 18} 19