14 b.use_custom_socket_order();
15 b.allow_any_socket_order();
17 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
21 .structure_type(StructureType::Dynamic)
22 .align_with_previous();
30 "Specifies the threshold or sensitivity to edges. Lowering this value you will be able "
31 "to detect more edges at the expense of performance");
36 "If there is an neighbor edge that has a Contrast Limit times bigger contrast than "
37 "current edge, current edge will be discarded. This allows to eliminate spurious "
44 .description(
"Specifies how much sharp corners will be rounded");
68 this->
get_input(
"Threshold").get_single_value_default<float>(), 0.0f, 1.0f) /
74 return math::max(0.0f, this->
get_input(
"Contrast Limit").get_single_value_default<float>());
98 ntype.
ui_name =
"Anti-Aliasing";
#define NODE_CLASS_OP_FILTER
#define CMP_NODE_ANTIALIASING
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, const bNode &node)
Result & get_result(StringRef identifier)
Context & context() const
Result & get_input(StringRef identifier) const
StructureType structure_type
NodeOperation(Context &context, const bNode &node)
float get_local_contrast_adaptation_factor()
int get_corner_rounding()
void node_register_type(bNodeType &ntype)
void smaa(Context &context, const Result &input, Result &output, const float threshold=0.1f, const float local_contrast_adaptation_factor=2.0f, const int corner_rounding=25)
T clamp(const T &a, const T &min, const T &max)
T max(const T &a, const T &b)
static void node_register()
static NodeOperation * get_compositor_operation(Context &context, const bNode &node)
static void node_declare(NodeDeclarationBuilder &b)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
static constexpr int _180
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare