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