2021-05-20 22:00:39 +00:00
|
|
|
|
|
|
|
precision mediump float;
|
|
|
|
precision mediump sampler2D;
|
|
|
|
out mediump vec4 sk_FragColor;
|
|
|
|
uniform mediump vec4 colorGreen;
|
|
|
|
uniform mediump vec4 colorRed;
|
|
|
|
uniform mediump mat2 testHalf2x2;
|
|
|
|
uniform highp mat2 testFloat2x2;
|
2021-05-21 21:27:57 +00:00
|
|
|
uniform mediump mat3 testHalf3x3;
|
|
|
|
uniform highp mat4x2 testFloat4x2;
|
2021-05-20 22:00:39 +00:00
|
|
|
mediump vec4 main() {
|
|
|
|
bool _0_ok = true;
|
|
|
|
_0_ok = _0_ok && testHalf2x2 == mat2(1.0, 2.0, 3.0, 4.0);
|
|
|
|
_0_ok = _0_ok && testFloat2x2 == mat2(5.0, 6.0, 7.0, 8.0);
|
|
|
|
_0_ok = _0_ok && testHalf2x2 != mat2(123.0);
|
|
|
|
_0_ok = _0_ok && testFloat2x2 != mat2(456.0);
|
2021-05-21 21:27:57 +00:00
|
|
|
_0_ok = _0_ok && testHalf3x3 == mat3(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0);
|
|
|
|
_0_ok = _0_ok && testFloat4x2 != mat4x2(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0);
|
2021-05-20 22:00:39 +00:00
|
|
|
return _0_ok ? colorGreen : colorRed;
|
|
|
|
}
|