shaders/colorspace: fix linear GLSL implementation
This code never clipped the values, which resulted in inconsistent behavior with the LUT version it was supposed to be replacing. As an added bonus, I realized I can also easily implement parity with the gain parameter.