Use mipmaps when downscaling bloom

This commit is contained in:
2025-11-25 11:28:37 +00:00
parent c0cfadbdd3
commit 1d177a7e16
3 changed files with 315 additions and 291 deletions
+1
View File
@@ -207,6 +207,7 @@ doDrawing' win pdata u = do
glBindFramebuffer GL_FRAMEBUFFER (_unFBO (fst (_fboHalf1 pdata)))
glDepthFunc GL_ALWAYS
glBindTextureUnit 0 (pdata ^. fboBloom . _2 . unTO)
glGenerateTextureMipmap (pdata ^. fboBloom . _2 . unTO)
glDisable GL_BLEND
-- this all needs more tuning + more thought
-- a fade effect would be cool, so not to fully reset last frames bloom