X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=lift_gamma_gain_effect.h;h=7967448d935105e3de78a19c9b5ab07ef23a5137;hp=b5007721710b28173130e6701650474df57cc20d;hb=f216b7bef5a968c89f6fc78e83cc26a91e504a8a;hpb=cfc161e0289c2169d4835c48751ff56b97355eb2 diff --git a/lift_gamma_gain_effect.h b/lift_gamma_gain_effect.h index b500772..7967448 100644 --- a/lift_gamma_gain_effect.h +++ b/lift_gamma_gain_effect.h @@ -20,7 +20,7 @@ // Also, gamma is a case where we would not want premultiplied alpha. // Thus, we have to divide away alpha first, and then re-multiply it back later. -#include +#include #include #include "effect.h" @@ -32,12 +32,14 @@ public: LiftGammaGainEffect(); virtual std::string effect_type_id() const { return "LiftGammaGainEffect"; } virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; } + 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); private: RGBTriplet lift, gamma, gain; + RGBTriplet uniform_gain_pow_inv_gamma, uniform_inv_gamma22; }; } // namespace movit