• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2out vec4 sk_FragColor;
3uniform float testArray[5];
4uniform vec4 colorGreen;
5uniform vec4 colorRed;
6vec4 main() {
7    for (int index = 0;index < 5; ++index) {
8        if (testArray[index] != float(index + 1)) {
9            return colorRed;
10        }
11    }
12    return colorGreen;
13}
14