1 #ifndef _MOVIT_WHITE_BALANCE_EFFECT_H
2 #define _MOVIT_WHITE_BALANCE_EFFECT_H 1
4 // Color correction in LMS color space.
13 class WhiteBalanceEffect : public Effect {
16 virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
17 virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
18 std::string output_fragment_shader();
20 void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
23 // The neutral color, in linear sRGB.
24 RGBTriplet neutral_color;
26 // Output color temperature (in Kelvins).
27 // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
28 float output_color_temperature;
33 #endif // !defined(_MOVIT_WHITE_BALANCE_EFFECT_H)