• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 colorGreen;
4uniform vec4 colorRed;
5vec4 main() {
6    float result = 0.0;
7    mat2 a = mat2(mat3(1.0));
8    result += a[0].x;
9    mat2 b = mat2(mat4(1.0));
10    result += b[0].x;
11    mat3 c = mat3(mat4(1.0));
12    result += c[0].x;
13    mat3 d = mat3(mat2(1.0));
14    result += d[0].x;
15    mat4 e = mat4(mat3(mat2(1.0)));
16    result += e[0].x;
17    mat2 f = mat2(mat3(mat4(1.0)));
18    result += f[0].x;
19    return result == 6.0 ? colorGreen : colorRed;
20}
21