// Color correction in LMS color space.
-#include <GL/glew.h>
+#include <epoxy/gl.h>
#include <string>
+#include <Eigen/Core>
#include "effect.h"
WhiteBalanceEffect();
virtual std::string effect_type_id() const { return "WhiteBalanceEffect"; }
virtual AlphaHandling alpha_handling() const { return DONT_CARE_ALPHA_TYPE; }
+ virtual bool one_to_one_sampling() const { return true; }
std::string output_fragment_shader();
void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
// Output color temperature (in Kelvins).
// Choosing 6500 will lead to no color cast (ie., the neutral color becomes perfectly gray).
float output_color_temperature;
+
+ Eigen::Matrix3d uniform_correction_matrix;
};
} // namespace movit