24 b.add_input<
decl::Float>(
"Size"_ustr).default_value(0.01f).min(0.0f).max(100.0f);
44 "node_wireframe_screenspace",
57 return get_output_default(socket_out_->identifier, NodeItem::Type::Float);
74 "Retrieve the edges of an object as it appears to Cycles.\nNote: as meshes are triangulated "
75 "before being processed by Cycles, topology will always appear triangulated";
78 ntype.
declare = file_ns::node_declare;
79 ntype.
draw_buttons = file_ns::node_shader_buts_wireframe;
80 ntype.
gpu_fn = file_ns::node_shader_gpu_wireframe;
#define SH_NODE_WIREFRAME
void node_register_type(bNodeType &ntype)
static void node_shader_buts_wireframe(ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_wireframe(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
@ ITEM_R_SPLIT_EMPTY_NAME
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void register_node_type_sh_wireframe()
@ GPU_MATFLAG_BARYCENTRIC
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
void GPU_material_flag_set(GPUMaterial *mat, eGPUMaterialFlag flag)
GPUNodeLink * GPU_shading_data()
GPUNodeLink * GPU_kernel_globals()
#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
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)