From 38ef46bd5cf01ad6d33246b52839ffde2faa3367 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 17 Jun 2019 23:25:49 +0300 Subject: [PATCH] Use linear filtering when rendering bloom This postprocessor is often rendered at a reduced resolution, and nearest filtering causes the output to appear blocky. --- source/bloom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/bloom.cpp b/source/bloom.cpp index e00fd0e1..6484d052 100644 --- a/source/bloom.cpp +++ b/source/bloom.cpp @@ -23,6 +23,7 @@ Bloom::Bloom(unsigned w, unsigned h): for(unsigned i=0; i<2; ++i) target[i] = new RenderTarget(w, h, (RENDER_COLOR,RGB16F)); + target[1]->set_texture_filter(LINEAR); common_shdata.uniform("source", 0); common_shdata.uniform("blurred", 1); -- 2.43.0