qzdoom/src/gl/shaders/gl_tonemapshader.h

34 lines
481 B
C
Raw Normal View History

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