From 8daa4f20451419ebd065729a17960eeabde1751f Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 15 Sep 2012 00:55:32 +0300 Subject: [PATCH] Use CLAMP_TO_EDGE on postprocessing textures --- source/ambientocclusion.cpp | 1 + source/bloom.cpp | 1 + 2 files changed, 2 insertions(+) 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); } -- 2.43.0