• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half4 colorRed;
2
3float4 main(float2 xy) {
4    half4 c = colorRed;
5
6    // The minifier should preserve spaces between increment operators and addition/subtraction.
7    // If spaces are removed, the second line could parse as `c.a-- - c.r` and evaluate to zero.
8    c.g = c.a++ + c.b;  // c = {1, 1, 0, 2}
9    c.g = c.a - --c.r;  // c = {0, 2, 0, 2}
10
11    return saturate(c);
12}
13