You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
581 B

uniform half4 input, expected;
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
const half4 constVal = half4(0);
return (sinh(input.x) == expected.x &&
sinh(input.xy) == expected.xy &&
sinh(input.xyz) == expected.xyz &&
sinh(input.xyzw) == expected.xyzw &&
sinh(constVal.x) == expected.x &&
sinh(constVal.xy) == expected.xy &&
sinh(constVal.xyz) == expected.xyz &&
sinh(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
}