]> git.sesse.net Git - movit/blob - white_balance_effect.h
Fix a GLSL warning.
[movit] / white_balance_effect.h
1 #ifndef _WHITE_BALANCE_EFFECT_H
2 #define _WHITE_BALANCE_EFFECT_H 1
3
4 // Color correction in LMS color space.
5
6 #include "effect.h"
7
8 class WhiteBalanceEffect : public Effect {
9 public:
10         WhiteBalanceEffect();
11         virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
12         std::string output_fragment_shader();
13
14         void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
15
16 private:
17         // The neutral color, in linear sRGB.
18         RGBTriplet neutral_color;
19
20         // Output color temperature (in Kelvins).
21         // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
22         float output_color_temperature;
23 };
24
25 #endif // !defined(_WHITE_BALANCE_EFFECT_H)