1 #ifndef _GAMMA_EXPANSION_EFFECT_H
2 #define _GAMMA_EXPANSION_EFFECT_H 1
5 #include "effect_chain.h"
7 #define EXPANSION_CURVE_SIZE 256
9 class GammaExpansionEffect : public Effect {
11 GammaExpansionEffect();
12 std::string output_fragment_shader();
14 virtual bool needs_linear_light() const { return false; }
15 virtual bool needs_srgb_primaries() const { return false; }
18 GammaCurve source_curve;
19 float expansion_curve[EXPANSION_CURVE_SIZE];
22 #endif // !defined(_GAMMA_EXPANSION_EFFECT_H)