Shuvit game master repo. http://shuvit.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

curves.osl 435B

12345678910111213141516171819
  1. uniform sampler2D bgl_RenderedTexture;
  2. uniform float BC_BRIGHTNESS = 2;
  3. uniform float BC_CONTRAST = 1;
  4. //const float BC_CONTRAST = 1.3; //1 is no contrast.
  5. //const float BC_BRIGHTNESS = 1.15; //1 is no brightness 1.15 is good
  6. void main()
  7. {
  8. vec4 color = texture2D(bgl_RenderedTexture, gl_TexCoord[0].st);
  9. color = ((color-1)*max(BC_CONTRAST,0));
  10. color = color+BC_BRIGHTNESS;
  11. gl_FragColor = color;
  12. }