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.
10 lines
482 B
10 lines
482 B
4 months ago
|
|
||
|
out vec4 sk_FragColor;
|
||
|
uniform vec4 testInputs;
|
||
|
uniform vec4 colorGreen;
|
||
|
uniform vec4 colorRed;
|
||
|
vec4 main() {
|
||
|
ivec4 expected = ivec4(1, 0, 0, 2);
|
||
|
return ((((((abs(int(testInputs.x)) == expected.x && abs(ivec2(testInputs.xy)) == expected.xy) && abs(ivec3(testInputs.xyz)) == expected.xyz) && abs(ivec4(testInputs)) == expected) && 1 == expected.x) && ivec2(1, 0) == expected.xy) && ivec3(1, 0, 0) == expected.xyz) && ivec4(1, 0, 0, 2) == expected ? colorGreen : colorRed;
|
||
|
}
|