4 #include "postprocessor.h"
6 #include "programdata.h"
13 Processes oversaturated colors to preserve hues. When one color component
14 exceeds 1.0, the others are scaled towards white. A transition curve is also
15 applied near 1.0 to prevent the abrupt change in the gradient.
17 Only makes sense when used in an HDR framebuffer.
19 class ColorCurve: public PostProcessor
30 /// Sets the size of the peak zone. Must be between 0 and 1, inclusive.
33 /** Sets brightness for oversaturated colors. Must be >= 1. Suggested
34 values are between 1.5 and 2.0; a value of 1.0 will clamp colors to the
36 void set_brightness(float);
38 void set_gamma(float);
42 virtual void render(const Texture2D &, const Texture2D &);