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
570 B
15 lines
570 B
uniform half4 inputH4, expectedH4;
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
half4 main(float2 coords) {
|
|
bool4 input = bool4(inputH4);
|
|
bool4 expected = bool4(expectedH4);
|
|
const bool4 constVal = bool4(true, false, true, false);
|
|
return (not(input.xy) == expected.xy &&
|
|
not(input.xyz) == expected.xyz &&
|
|
not(input.xyzw) == expected.xyzw &&
|
|
not(constVal.xy) == expected.xy &&
|
|
not(constVal.xyz) == expected.xyz &&
|
|
not(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
|
}
|