2021-02-03 18:03:29 +00:00
|
|
|
|
|
|
|
out vec4 sk_FragColor;
|
|
|
|
uniform vec4 colorGreen;
|
|
|
|
uniform vec4 colorRed;
|
2021-03-22 15:43:11 +00:00
|
|
|
bool test_half_b() {
|
2021-03-08 18:29:15 +00:00
|
|
|
mat2 m1 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
|
|
mat2 m3 = m1;
|
|
|
|
mat2 m4 = mat2(1.0);
|
|
|
|
m3 *= m4;
|
|
|
|
mat2 m5 = mat2(m1[0].x);
|
|
|
|
mat2 m6 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
|
|
m6 += m5;
|
|
|
|
mat4 m10 = mat4(1.0);
|
|
|
|
mat4 m11 = mat4(2.0);
|
|
|
|
m11 -= m10;
|
|
|
|
return true;
|
|
|
|
}
|
2021-02-03 18:03:29 +00:00
|
|
|
vec4 main() {
|
2021-03-15 22:08:38 +00:00
|
|
|
mat2 _2_m1 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
|
|
mat2 _4_m3 = _2_m1;
|
|
|
|
mat2 _5_m4 = mat2(1.0);
|
|
|
|
_4_m3 *= _5_m4;
|
|
|
|
mat2 _6_m5 = mat2(_2_m1[0].x);
|
|
|
|
mat2 _7_m6 = mat2(1.0, 2.0, 3.0, 4.0);
|
|
|
|
_7_m6 += _6_m5;
|
|
|
|
mat4 _10_m10 = mat4(1.0);
|
|
|
|
mat4 _11_m11 = mat4(2.0);
|
|
|
|
_11_m11 -= _10_m10;
|
2021-03-22 15:43:11 +00:00
|
|
|
return true && test_half_b() ? colorGreen : colorRed;
|
2021-02-03 18:03:29 +00:00
|
|
|
}
|