20 b.add_input<
decl::Float>(
"Radius"_ustr).default_value(0.05f).min(0.0f).max(1000.0f);
52 return get_input_link(
"Normal", NodeItem::Type::Vector3);
69 "Generates normals with round corners.\nNote: only supported in Cycles, and may slow down "
73 ntype.
declare = file_ns::node_declare;
75 ntype.
initfunc = file_ns::node_shader_init_bevel;
76 ntype.
gpu_fn = file_ns::gpu_shader_bevel;
void node_register_type(bNodeType &ntype)
static int gpu_shader_bevel(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_shader_init_bevel(bNodeTree *, bNode *node)
static void node_shader_buts_bevel(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
@ ITEM_R_SPLIT_EMPTY_NAME
void register_node_type_sh_bevel()
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bool GPU_link(GPUMaterial *mat, const char *name,...)
GPUNodeLink * GPU_shading_data()
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
NodeMaterialXFunction materialx_fn
void(*) draw_buttons(ui::Layout &, bContext *C, PointerRNA *ptr)
std::string ui_description
NodeGPUExecFunction gpu_fn
void(*) initfunc(bNodeTree *ntree, bNode *node)
const char * enum_name_legacy
NodeDeclareFunction declare
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)