linearize.fs 223 B

123456789101112131415
  1. #version 150
  2. #define INPUT_GAMMA 2.2
  3. uniform sampler2D source[];
  4. in Vertex {
  5. vec2 vTexCoord;
  6. };
  7. out vec4 FragColor;
  8. void main() {
  9. FragColor = pow(texture(source[0], vTexCoord), vec4(INPUT_GAMMA));
  10. }