From: Mikko Rasa Date: Fri, 14 Sep 2012 21:55:32 +0000 (+0300) Subject: Use CLAMP_TO_EDGE on postprocessing textures X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8daa4f20451419ebd065729a17960eeabde1751f;p=libs%2Fgl.git Use CLAMP_TO_EDGE on postprocessing textures --- diff --git a/source/ambientocclusion.cpp b/source/ambientocclusion.cpp index 278720ce..c02daf52 100644 --- a/source/ambientocclusion.cpp +++ b/source/ambientocclusion.cpp @@ -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); diff --git a/source/bloom.cpp b/source/bloom.cpp index 8fda424d..fdd11703 100644 --- a/source/bloom.cpp +++ b/source/bloom.cpp @@ -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); }