blob: 2d5c1215b27e5c70ed8c1ed67d78d64aab96652b [file] [log] [blame]
John Stiles469fb3c2021-09-30 12:00:09 -04001uniform half4 inputVal, expected;
John Stiles1049d822021-08-13 15:33:17 -04002uniform half4 colorGreen, colorRed;
3
4half4 main(float2 coords) {
5 const half4 constVal1 = half4(0, 0.2449186624037091292, 0.46211715726000975, 0.761594155955764);
John Stiles469fb3c2021-09-30 12:00:09 -04006 return (atanh(inputVal.x) == expected.x &&
7 atanh(inputVal.xy) == expected.xy &&
8 atanh(inputVal.xyz) == expected.xyz &&
9 atanh(inputVal.xyzw) == expected.xyzw &&
John Stiles1049d822021-08-13 15:33:17 -040010 atanh(constVal1.x) == expected.x &&
11 atanh(constVal1.xy) == expected.xy &&
12 atanh(constVal1.xyz) == expected.xyz &&
13 atanh(constVal1.xyzw) == expected.xyzw) ? colorGreen : colorRed;
14}