Avoid if in fragment shader