1 uniform half4 inputVal, expected;
2 uniform half4 colorGreen, colorRed;
4 half4 main(float2 coords) {
5 const half4 constVal = half4(0);
6 return (tanh(inputVal.x) == expected.x &&
7 tanh(inputVal.xy) == expected.xy &&
8 tanh(inputVal.xyz) == expected.xyz &&
9 tanh(inputVal.xyzw) == expected.xyzw &&
10 tanh(constVal.x) == expected.x &&
11 tanh(constVal.xy) == expected.xy &&
12 tanh(constVal.xyz) == expected.xyz &&
13 tanh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;