#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
+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.
private:
Program shprog;
ProgramData shdata;
+ Texture1D curve;
const Mesh &quad;
public:
saturated value. */
void set_brightness(float);
+ void set_gamma(float);
+ void set_srgb();
+ void set_linear();
+
virtual void render(const Texture2D &, const Texture2D &);
};