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