2016-07-27 19:50:30 +00:00
|
|
|
#ifndef __GL_BLOOMSHADER_H
|
|
|
|
#define __GL_BLOOMSHADER_H
|
|
|
|
|
|
|
|
#include "gl_shaderprogram.h"
|
|
|
|
|
|
|
|
class FBloomExtractShader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Bind();
|
|
|
|
|
2016-08-25 23:46:39 +00:00
|
|
|
FBufferedUniformSampler SceneTexture;
|
2016-09-18 13:57:22 +00:00
|
|
|
FBufferedUniformSampler ExposureTexture;
|
2016-08-12 15:44:59 +00:00
|
|
|
FBufferedUniform2f Scale;
|
|
|
|
FBufferedUniform2f Offset;
|
2016-07-27 19:50:30 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
FShaderProgram mShader;
|
|
|
|
};
|
|
|
|
|
|
|
|
class FBloomCombineShader
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void Bind();
|
|
|
|
|
2016-08-25 23:46:39 +00:00
|
|
|
FBufferedUniformSampler BloomTexture;
|
2016-07-27 19:50:30 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
FShaderProgram mShader;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|