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