1 #ifndef _MOVIT_WHITE_BALANCE_EFFECT_H
2 #define _MOVIT_WHITE_BALANCE_EFFECT_H 1
4 // Color correction in LMS color space.
14 class WhiteBalanceEffect : public Effect {
17 std::string effect_type_id() const override { return "WhiteBalanceEffect"; }
18 AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; }
19 bool strong_one_to_one_sampling() const override { return true; }
20 std::string output_fragment_shader() override;
22 void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num) override;
25 // The neutral color, in linear sRGB.
26 RGBTriplet neutral_color;
28 // Output color temperature (in Kelvins).
29 // Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
30 float output_color_temperature;
32 Eigen::Matrix3d uniform_correction_matrix;
37 #endif // !defined(_MOVIT_WHITE_BALANCE_EFFECT_H)