From 65a20df7c11c502e7536b077bc693bb3ed82b300 Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Thu, 13 Jun 2019 08:55:25 -0700 Subject: [PATCH] lucy_bloom: improve blur quality by not skipping texels --- samples/lucy_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/lucy_utils.cpp b/samples/lucy_utils.cpp index cec56d8841..613532a1d8 100644 --- a/samples/lucy_utils.cpp +++ b/samples/lucy_utils.cpp @@ -37,7 +37,7 @@ using namespace utils; using filament::geometry::SurfaceOrientation; -#define FILTER_SIZE 9 +#define FILTER_SIZE 17 namespace LucyUtils { @@ -139,7 +139,7 @@ Entity createQuad(Engine* engine, Texture* tex, ImageOp op, Texture* secondary) static float4 weights[FILTER_SIZE * 2]; float4* hweights = weights; float4* vweights = weights + FILTER_SIZE; - static const float radius = 2; + static const float radius = 1; const auto filter = [](float t) { t /= 2.0; if (t >= 1.0) return 0.0f;