1uniform half4 testInputs; 2uniform half4 colorGreen, colorRed, colorWhite; 3 4half4 main(float2 coords) { 5 half4 expectedA = half4(0.75, 0.0, 0.75, 0.25); 6 half4 expectedB = half4(0.25, 0.0, 0.75, 1.0); 7 const half4 constVal = half4(-1.25, 0, 0.75, 2.25); 8 const half4 constRamp = half4(0.5, 0.75, 1, 1.25); 9 return (mod(testInputs.x, 1) == expectedA.x && 10 mod(testInputs.xy, 1) == expectedA.xy && 11 mod(testInputs.xyz, 1) == expectedA.xyz && 12 mod(testInputs.xyzw, 1) == expectedA.xyzw && 13 mod(constVal.x, 1) == expectedA.x && 14 mod(constVal.xy, 1) == expectedA.xy && 15 mod(constVal.xyz, 1) == expectedA.xyz && 16 mod(constVal.xyzw, 1) == expectedA.xyzw && 17 mod(testInputs.x, colorWhite.x) == expectedA.x && 18 mod(testInputs.xy, colorWhite.xy) == expectedA.xy && 19 mod(testInputs.xyz, colorWhite.xyz) == expectedA.xyz && 20 mod(testInputs.xyzw, colorWhite.xyzw) == expectedA.xyzw && 21 mod(constVal.x, constRamp.x) == expectedB.x && 22 mod(constVal.xy, constRamp.xy) == expectedB.xy && 23 mod(constVal.xyz, constRamp.xyz) == expectedB.xyz && 24 mod(constVal.xyzw, constRamp.xyzw) == expectedB.xyzw) ? colorGreen : colorRed; 25} 26