2021-09-30 16:00:09 +00:00
|
|
|
uniform half4 inputVal, expected;
|
2021-05-07 13:42:15 +00:00
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
|
|
|
|
half4 main(float2 coords) {
|
|
|
|
const half4 constVal = half4(0);
|
2021-09-30 16:00:09 +00:00
|
|
|
return (asin(inputVal.x) == expected.x &&
|
|
|
|
asin(inputVal.xy) == expected.xy &&
|
|
|
|
asin(inputVal.xyz) == expected.xyz &&
|
|
|
|
asin(inputVal.xyzw) == expected.xyzw &&
|
2021-05-07 13:42:15 +00:00
|
|
|
asin(constVal.x) == expected.x &&
|
|
|
|
asin(constVal.xy) == expected.xy &&
|
|
|
|
asin(constVal.xyz) == expected.xyz &&
|
|
|
|
asin(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
|
|
}
|