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