| 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 |
nothing calls this directly
no test coverage detected