2021-07-08 22:20:21 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
|
|
|
uniform vec4 testInputs;
|
|
|
|
vec4 main() {
|
|
|
|
bool ok = true;
|
|
|
|
ok = ok && mat2(testInputs) == mat2(-1.25, 0.0, 0.75, 2.25);
|
|
|
|
ok = ok && mat2(testInputs) == mat2(-1.25, 0.0, 0.75, 2.25);
|
2021-07-10 16:48:51 +00:00
|
|
|
ok = ok && mat2(colorGreen) == mat2(0.0, 1.0, 0.0, 1.0);
|
|
|
|
ok = ok && mat2(colorGreen) == mat2(0.0, 1.0, 0.0, 1.0);
|
|
|
|
ok = ok && mat2(vec4(ivec4(colorGreen))) == mat2(0.0, 1.0, 0.0, 1.0);
|
|
|
|
ok = ok && mat2(colorGreen) == mat2(0.0, 1.0, 0.0, 1.0);
|
|
|
|
ok = ok && mat2(colorGreen) == mat2(0.0, 1.0, 0.0, 1.0);
|
|
|
|
ok = ok && mat2(vec4(bvec4(colorGreen))) == mat2(0.0, 1.0, 0.0, 1.0);
|
2021-07-08 22:20:21 +00:00
|
|
|
return ok ? colorGreen : colorRed;
|
|
|
|
}
|