]> git.tdb.fi Git - libs/gl.git/blobdiff - source/colorcurve.h
Add support for array and multiple lights in generated shaders
[libs/gl.git] / source / colorcurve.h
index 82a8526f2f113a91bec2e7217719825b1d6ea311..75e7fd302a76a2bea330162942c7c881379dd2c5 100644 (file)
@@ -4,12 +4,13 @@
 #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.
 
@@ -20,6 +21,7 @@ class ColorCurve: public PostProcessor
 private:
        Program shprog;
        ProgramData shdata;
+       Texture1D curve;
        const Mesh &quad;
 
 public:
@@ -33,6 +35,10 @@ public:
        saturated value. */
        void set_brightness(float);
 
+       void set_gamma(float);
+       void set_srgb();
+       void set_linear();
+
        virtual void render(const Texture2D &, const Texture2D &);
 };