1uniform half4 inputVal, expected; 2uniform half4 colorGreen, colorRed; 3 4half4 main(float2 coords) { 5 const half4 constVal = half4(1.5707963268, 3.1415926536, 4.7123889804, 6.2831853072); 6 return (degrees(inputVal.x) == expected.x && 7 degrees(inputVal.xy) == expected.xy && 8 degrees(inputVal.xyz) == expected.xyz && 9 degrees(inputVal.xyzw) == expected.xyzw && 10 degrees(constVal.x) == expected.x && 11 degrees(constVal.xy) == expected.xy && 12 degrees(constVal.xyz) == expected.xyz && 13 degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed; 14} 15