Use downscaling to sixteenth res for bloom

This commit is contained in:
2025-11-30 11:47:14 +00:00
parent 6ebf3f4ef7
commit 1635ce0176
4 changed files with 37 additions and 18 deletions
+16 -3
View File
@@ -66,7 +66,6 @@ sizeFBOs cfig rdata =
GL_LINEAR_MIPMAP_LINEAR
GL_LINEAR
GL_RGBA16F
-- [fboBloom] -- fboPos probably doesn't need the alpha channel
)
>>= fboPos
( resizeFBOTO
@@ -75,12 +74,26 @@ sizeFBOs cfig rdata =
GL_NEAREST
GL_RGBA16F -- possibly doesn't need the alpha channel...
)
>>= fboHalf
( resizeFBOTO'
(getWindowSize (const EighthRes) cfig)
5
GL_LINEAR_MIPMAP_LINEAR
GL_LINEAR
GL_RGBA16F
)
-- >>= foldUpdateFBOTO
-- _gr_downsize_res
-- GL_LINEAR_MIPMAP_LINEAR
-- GL_LINEAR
-- GL_RGBA16F
-- [fboHalf]
>>= foldUpdateFBOTO
_gr_downsize_res
(const SixteenthRes)
GL_LINEAR_MIPMAP_LINEAR
GL_LINEAR
GL_RGBA16F
[fboHalf1, fboHalf2]
[fboQuarter]
>>= fboWindow
( resizeFBOTO2
(getWindowSize _gr_world_res cfig)