]> git.tdb.fi Git - libs/gl.git/commitdiff
Use RGBA format render target for Bloom
authorMikko Rasa <tdb@tdb.fi>
Sat, 20 Nov 2021 22:06:59 +0000 (00:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 20 Nov 2021 22:06:59 +0000 (00:06 +0200)
source/effects/bloom.cpp

index 7795e191faa0ca6aca0ceb472bea430a5b067e5f..5204adb7ab41d27818de8f1463f66d7067d9029b 100644 (file)
@@ -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);