Use mipmaps when downscaling bloom
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user