]> git.tdb.fi Git - libs/gl.git/commitdiff
Use CLAMP_TO_EDGE on postprocessing textures
authorMikko Rasa <tdb@tdb.fi>
Fri, 14 Sep 2012 21:55:32 +0000 (00:55 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 14 Sep 2012 21:55:32 +0000 (00:55 +0300)
source/ambientocclusion.cpp
source/bloom.cpp

index 278720cec48fac4903661f4f52010fa99a3b19b1..c02daf52a6942cd24af3a6c5dc34dd578419da43 100644 (file)
@@ -79,6 +79,7 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float depth_ratio):
        occlusion.storage(RGB, w, h);
        occlusion.set_min_filter(NEAREST);
        occlusion.set_mag_filter(NEAREST);
+       occlusion.set_wrap(CLAMP_TO_EDGE);
        fbo.attach(COLOR_ATTACHMENT0, occlusion, 0);
 
        combine_texturing.attach(2, occlusion);
index 8fda424d5864959565633ae172a0e0bf463f2331..fdd11703f6ceb565e20c91140df53cecda2fe8ba 100644 (file)
@@ -57,6 +57,7 @@ Bloom::Bloom(unsigned w, unsigned h):
        for(unsigned i=0; i<2; ++i)
        {
                tex[i].set_min_filter(NEAREST);
+               tex[i].set_wrap(CLAMP_TO_EDGE);
                tex[i].storage(RGB16F, w, h);
        }