MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / DeferredBloomPass

Method DeferredBloomPass

src/Nazara/Graphics/DeferredBloomPass.cpp:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 */
20
21 DeferredBloomPass::DeferredBloomPass() :
22 m_uniformUpdated(false),
23 m_brightLuminance(0.8f),
24 m_brightMiddleGrey(0.5f),
25 m_brightThreshold(0.4f),
26 m_blurPassCount(5)
27 {
28 m_bilinearSampler.SetAnisotropyLevel(1);
29 m_bilinearSampler.SetFilterMode(SamplerFilter_Bilinear);
30 m_bilinearSampler.SetWrapMode(SamplerWrap_Clamp);
31
32 m_bloomBrightShader = ShaderLibrary::Get("DeferredBloomBright");
33 m_bloomFinalShader = ShaderLibrary::Get("DeferredBloomFinal");
34 m_bloomStates.depthBuffer = false;
35 m_gaussianBlurShader = ShaderLibrary::Get("DeferredGaussianBlur");
36 m_gaussianBlurShaderFilterLocation = m_gaussianBlurShader->GetUniformLocation("Filter");
37
38 for (unsigned int i = 0; i < 2; ++i)
39 m_bloomTextures[i] = Texture::New();
40 }
41
42 DeferredBloomPass::~DeferredBloomPass() = default;
43

Callers

nothing calls this directly

Calls 4

SetAnisotropyLevelMethod · 0.80
SetFilterModeMethod · 0.80
SetWrapModeMethod · 0.80
GetUniformLocationMethod · 0.80

Tested by

no test coverage detected