#ifndef __GL_TONEMAPSHADER_H #define __GL_TONEMAPSHADER_H #include "gl_shaderprogram.h" class FTonemapShader { public: void Bind(); FBufferedUniform1i SceneTexture; FBufferedUniform1f Exposure; FBufferedUniform1i PaletteLUT; static bool IsPaletteMode(); private: enum TonemapMode { None, Uncharted2, HejlDawson, Reinhard, Linear, Palette, NumTonemapModes }; static const char *GetDefines(int mode); FShaderProgram mShader[NumTonemapModes]; }; #endif