1 #ifndef _WHITE_BALANCE_EFFECT_H
2 #define _WHITE_BALANCE_EFFECT_H 1
4 // Color correction in LMS color space.
8 class WhiteBalanceEffect : public Effect {
11 virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
12 std::string output_fragment_shader();
14 void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
17 // The neutral color, in linear sRGB.
18 RGBTriplet neutral_color;
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;
25 #endif // !defined(_WHITE_BALANCE_EFFECT_H)