2021-09-30 16:00:09 +00:00
|
|
|
uniform half4 inputVal, expected;
|
2021-05-11 14:37:56 +00:00
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
|
|
|
|
half4 main(float2 coords) {
|
|
|
|
const half4 constVal = half4(0);
|
2021-09-30 16:00:09 +00:00
|
|
|
return (radians(inputVal.x) == expected.x &&
|
|
|
|
radians(inputVal.xy) == expected.xy &&
|
|
|
|
radians(inputVal.xyz) == expected.xyz &&
|
|
|
|
radians(inputVal.xyzw) == expected.xyzw &&
|
2021-05-11 14:37:56 +00:00
|
|
|
radians(constVal.x) == expected.x &&
|
|
|
|
radians(constVal.xy) == expected.xy &&
|
|
|
|
radians(constVal.xyz) == expected.xyz &&
|
|
|
|
radians(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
|
|
}
|