From: Mikko Rasa Date: Sat, 20 Nov 2021 22:06:59 +0000 (+0200) Subject: Use RGBA format render target for Bloom X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=627c1d9ab72bbbea96b3dada225a6d8f00c0c15c;p=libs%2Fgl.git Use RGBA format render target for Bloom --- 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);