#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