From 627c1d9ab72bbbea96b3dada225a6d8f00c0c15c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 21 Nov 2021 00:06:59 +0200 Subject: [PATCH] Use RGBA format render target for Bloom --- source/effects/bloom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/effects/bloom.cpp b/source/effects/bloom.cpp index 7795e191..5204adb7 100644 --- a/source/effects/bloom.cpp +++ b/source/effects/bloom.cpp @@ -22,7 +22,7 @@ Bloom::Bloom(unsigned w, unsigned h): blur_shdata[1].uniform("delta", 0.0f, 1.0f/h); for(unsigned i=0; i<2; ++i) - target[i] = new RenderTarget(w, h, (COLOR_ATTACHMENT,RGB16F)); + target[i] = new RenderTarget(w, h, (COLOR_ATTACHMENT,RGBA16F)); set_radius(2.0f); set_strength(0.2f); -- 2.45.2