Shader_Minifier icon indicating copy to clipboard operation
Shader_Minifier copied to clipboard

+= ternary

Open laurentlb opened this issue 1 year ago • 0 comments
trafficstars

Input

void main() {
  if (x) {
    y += 1.;
  } else {
    y += 2.;
  }
}

Current output:

void main(){y=x?y+1.:y+2.;}

I would expect the += operator to be preserved.

laurentlb avatar Aug 24 '24 20:08 laurentlb