cloudy-raytracer/post-processing/bloomshader.h
2023-01-24 13:32:19 +01:00

27 lines
505 B
C++

#ifndef CG1_TRACER_BLOOMSHADER_H
#define CG1_TRACER_BLOOMSHADER_H
#include "common/texture.h"
#include "common/vector3d.h"
class Bloomshader {
public:
Bloomshader(Texture image, float threshold, int blurRange);
void thresholdshader();
Texture getimage();
//void gaussianBlur(int x, int y);
void bloomshader();
float luminance(Color color);
private:
Texture image;
Texture thresholdImage;
float threshold;
int blurRange;
};
#endif //CG1_TRACER_BLOOMSHADER_H