float solarize(float in){ float out = in; uniform float harfLevel = 0.5; if(out > harfLevel){ out = 1-out; } return out *= 2; }