blob: 50794e9f55fdb5b814cf8f9fa727c33e193ac3e3 [file] [log] [blame]
uniform half4 inputVal, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(1.5707963268, 3.1415926536, 4.7123889804, 6.2831853072);
return (degrees(inputVal.x) == expected.x &&
degrees(inputVal.xy) == expected.xy &&
degrees(inputVal.xyz) == expected.xyz &&
degrees(inputVal.xyzw) == expected.xyzw &&
degrees(constVal.x) == expected.x &&
degrees(constVal.xy) == expected.xy &&
degrees(constVal.xyz) == expected.xyz &&
degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}