diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2015-08-06 22:04:43 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2015-11-18 22:50:06 +0300 |
commit | 8dea06565f11f706195c89dcfcd7867b887a0ff7 (patch) | |
tree | 4c82f0c3aa12d967d0c49ec57f350cba43c6db81 /intern/cycles/kernel/kernel_types.h | |
parent | 24a387d6ff515abcf47d7ad61d4faa9a589bd1a9 (diff) |
Cycles: Add Blackman-Harris filter, fix Gaussian filter
This commit adds the Blackman-Harris windows function as a pixel filter to Cycles. On some cases, such as wireframes or high-frequency textures,
Blackman-Harris can give subtle but noticable improvements over the Gaussian window.
Also, the gaussian window was truncated too early, which degraded quality a bit, therefore the evaluation region is now three times as wide.
To avoid artifacts caused by the wider curve, the filter table size is increased to 1024.
Reviewers: #cycles
Differential Revision: https://developer.blender.org/D1453
Diffstat (limited to 'intern/cycles/kernel/kernel_types.h')
-rw-r--r-- | intern/cycles/kernel/kernel_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h index 1d71e6435db..75a9e213d4f 100644 --- a/intern/cycles/kernel/kernel_types.h +++ b/intern/cycles/kernel/kernel_types.h @@ -37,7 +37,7 @@ CCL_NAMESPACE_BEGIN #define OBJECT_SIZE 11 #define OBJECT_VECTOR_SIZE 6 #define LIGHT_SIZE 5 -#define FILTER_TABLE_SIZE 256 +#define FILTER_TABLE_SIZE 1024 #define RAMP_TABLE_SIZE 256 #define SHUTTER_TABLE_SIZE 256 #define PARTICLE_SIZE 5 |