• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform vec4 colorRed;
4uniform mat2 testMatrix2x2;
5uniform float testArray[5];
6const float globalArray[5] = float[5](1.0, 1.0, 1.0, 1.0, 1.0);
7const vec2 globalVector = vec2(1.0);
8const mat2 globalMatrix = mat2(1.0, 1.0, 1.0, 1.0);
9vec4 main() {
10    const float localArray[5] = float[5](0.0, 1.0, 2.0, 3.0, 4.0);
11    const vec2 localVector = vec2(1.0);
12    const mat2 localMatrix = mat2(0.0, 1.0, 2.0, 3.0);
13    if (((((globalArray == testArray || globalVector == colorRed.xy) || globalMatrix == testMatrix2x2) || localArray == testArray) || localVector == colorRed.xy) || localMatrix == testMatrix2x2) {
14        return colorRed;
15    }
16    return vec4(0.0, 1.0, 0.0, 1.0);
17}
18