26 .default_value({1.0f, 1.0f, 1.0f, 1.0f})
27 .compositor_domain_priority(0);
73 return node_storage(
bnode()).threshold / 2.0f;
80 return node_storage(
bnode()).contrast_limit * 10.0f;
87 return int(node_storage(
bnode()).corner_rounding * 100.0f);
105 ntype.
declare = file_ns::cmp_node_antialiasing_declare;
106 ntype.
draw_buttons = file_ns::node_composit_buts_antialiasing;
109 ntype.
initfunc = file_ns::node_composit_init_antialiasing;
#define CMP_DEFAULT_SMAA_CORNER_ROUNDING
#define NODE_STORAGE_FUNCS(StorageT)
#define CMP_DEFAULT_SMAA_CONTRAST_LIMIT
#define CMP_DEFAULT_SMAA_THRESHOLD
#define NODE_CLASS_OP_FILTER
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
float get_local_contrast_adaptation_factor()
int get_corner_rounding()
NodeOperation(Context &context, DNode node)
const bNode & bnode() const
Result & get_input(StringRef identifier) const
Result & get_result(StringRef identifier)
Context & context() const
local_group_size(16, 16) .push_constant(Type b
draw_view push_constant(Type::INT, "radiance_src") .push_constant(Type capture_info_buf storage_buf(1, Qualifier::READ, "ObjectBounds", "bounds_buf[]") .push_constant(Type draw_view int
void node_type_size(bNodeType *ntype, int width, int minwidth, int maxwidth)
void node_type_storage(bNodeType *ntype, const char *storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
void node_register_type(bNodeType *ntype)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void node_composit_buts_antialiasing(uiLayout *layout, bContext *, PointerRNA *ptr)
static void cmp_node_antialiasing_declare(NodeDeclarationBuilder &b)
static void node_composit_init_antialiasing(bNodeTree *, bNode *node)
void smaa(Context &context, Result &input, Result &output, float threshold=0.1f, float local_contrast_adaptation_factor=2.0f, int corner_rounding=25)
void register_node_type_cmp_antialiasing()
void cmp_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
void node_free_standard_storage(bNode *node)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
NodeGetCompositorOperationFunction get_compositor_operation
void(* initfunc)(bNodeTree *ntree, bNode *node)
void(* draw_buttons)(uiLayout *, bContext *C, PointerRNA *ptr)
NodeDeclareFunction declare