8#ifndef GRAPHICS_POSTEFFECTS_GBLOOMPYRAMID_H_
9#define GRAPHICS_POSTEFFECTS_GBLOOMPYRAMID_H_
48 float threshold = 1.0f,
float knee = 0.2f,
float bloomsize = 1.0f);
58 float intensity = 1.0f,
float threshold = 1.0f,
59 float knee = 0.2f,
float bloomsize = 1.0f);
75 float bloomsize = 1.0f,
float colorSoftness = 0.0f,
float minGlowBrightness = 0.0f);
78 float intensity,
float bloomsize,
float rgb[3],
79 float colorSoftness = 0.0f,
float minGlowBrightness = 0.0f);
106 void resize(
int screenwidth,
int screenheight);
114 const std::string getPrefilterFragSrc();
115 const std::string getDownsampleFragSrc();
116 const std::string getUpsampleFragSrc();
117 const std::string getCompositeFragSrc();
119 void allocateMips(
int screenwidth,
int screenheight);
122 void mipSize(
int level,
int& outw,
int& outh)
const;
125 int screenwidth, screenheight;
136 float minglowbrightness;
const std::string getVertSrc() override
void setBloomSize(float newbloomsize)
void resize(int screenwidth, int screenheight)
void setAlphaMask(bool enabled)
void setKnee(float newknee)
void render(gFbo &src, gFbo &dst) override
Executes the multi-pass bloom rendering pipeline.
const std::string getFragSrc() override
void setColorSoftness(float newcolorsoftness)
void setThreshold(float newthreshold)
void setRgbMask(float r, float g, float b)
gBloomPyramid(float rgb[3], int miplevels=6, float intensity=1.0f, float bloomsize=1.0f, float colorSoftness=0.0f, float minGlowBrightness=0.0f)
Constructs an RGB Mask based Bloom Pyramid (Auto-sized).
gBloomPyramid(int screenwidth, int screenheight, int miplevels=6, float intensity=1.0f, float threshold=1.0f, float knee=0.2f, float bloomsize=1.0f)
Constructs a Luminance/Alpha based Bloom Pyramid with specific FBO dimensions.
gBloomPyramid(int miplevels=6, float intensity=1.0f, float threshold=1.0f, float knee=0.2f, float bloomsize=1.0f)
Constructs a Luminance/Alpha based Bloom Pyramid (Auto-sized).
void setMinGlowBrightness(float newminglowbrightness)
void setIntensity(float newintensity)
gBloomPyramid(int screenwidth, int screenheight, int miplevels, float intensity, float bloomsize, float rgb[3], float colorSoftness=0.0f, float minGlowBrightness=0.0f)
float r
Definition gColor.h:22
float b
Definition gColor.h:22
float g
Definition gColor.h:22