Blender V4.3
COM_algorithm_smaa.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "COM_context.hh"
8#include "COM_result.hh"
9
11
12/* Anti-alias the given input using the SMAA algorithm and write the result into the given output.
13 * See the SMAA_THRESHOLD, SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR, and SMAA_CORNER_ROUNDING defines
14 * in gpu_shader_smaa_lib.glsl for information on the parameters. */
15void smaa(Context &context,
16 Result &input,
17 Result &output,
18 float threshold = 0.1f,
19 float local_contrast_adaptation_factor = 2.0f,
20 int corner_rounding = 25);
21
22} // namespace blender::realtime_compositor
void smaa(Context &context, Result &input, Result &output, float threshold=0.1f, float local_contrast_adaptation_factor=2.0f, int corner_rounding=25)
Definition smaa.cc:160