X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcolorcurve.h;h=dac0ac08ab689382ace03041070d4db77ec873e2;hb=refs%2Fheads%2Fmaster;hp=75e7fd302a76a2bea330162942c7c881379dd2c5;hpb=aa987216b92584aafc0ecbc3d578606018078f91;p=libs%2Fgl.git diff --git a/source/colorcurve.h b/source/colorcurve.h deleted file mode 100644 index 75e7fd30..00000000 --- a/source/colorcurve.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef COLORCURVE_H_ -#define COLORCURVE_H_ - -#include "postprocessor.h" -#include "program.h" -#include "programdata.h" -#include "texture1d.h" - -namespace Msp { -namespace GL { - -/** -Processes oversaturated colors to preserve hues. When one color component -exceeds 1.0, the others are scaled towards white. A transition curve is also -applied near 1.0 to prevent the abrupt change in the gradient. - -Only makes sense when used in an HDR framebuffer. -*/ -class ColorCurve: public PostProcessor -{ -private: - Program shprog; - ProgramData shdata; - Texture1D curve; - const Mesh &quad; - -public: - ColorCurve(); - - /// Sets the size of the peak zone. Must be between 0 and 1, inclusive. - void set_peak(float); - - /** Sets brightness for oversaturated colors. Must be >= 1. Suggested - values are between 1.5 and 2.0; a value of 1.0 will clamp colors to the - saturated value. */ - void set_brightness(float); - - void set_gamma(float); - void set_srgb(); - void set_linear(); - - virtual void render(const Texture2D &, const Texture2D &); -}; - -} // namespace GL -} // namespace Msp - -#endif