• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorRed, colorGreen;
2
3bool test() {
4    bool ok = true;
5    ok = ok &&  (float3x2(2) == float3x2(float2(2.0, 0.0), float2(0.0, 2.0), float2(0.0)));
6    return ok;
7}
8
9half4 main(float2 coords) {
10    return test() ? colorGreen : colorRed;
11}
12