11 lines
354 B
Plaintext
11 lines
354 B
Plaintext
|
uniform half4 testInputs;
|
||
|
uniform half4 colorGreen, colorRed;
|
||
|
|
||
|
half4 main() {
|
||
|
half4 expected = half4(-1, 0, 1, 1);
|
||
|
return (sign(testInputs.x) == expected.x &&
|
||
|
sign(testInputs.xy) == expected.xy &&
|
||
|
sign(testInputs.xyz) == expected.xyz &&
|
||
|
sign(testInputs.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
||
|
}
|