43 layout.
prop_search(ptr,
"layer_name", &dataptr,
"color_attributes",
"", ICON_GROUP_VCOL);
55 node->storage = vertexColor;
80 for (
const auto [i, sock] :
node->outputs.enumerate()) {
92 return get_output_default(socket_out_->identifier, NodeItem::Type::Any);
106 ntype.
ui_name =
"Color Attribute";
108 "Retrieve a color attribute, or the default fallback if none is specified";
111 ntype.
declare = file_ns::node_declare;
112 ntype.
draw_buttons = file_ns::node_shader_buts_vertex_color;
113 ntype.
initfunc = file_ns::node_shader_init_vertex_color;
116 ntype.
gpu_fn = file_ns::node_shader_gpu_vertex_color;
#define SH_NODE_VERTEX_COLOR
void node_register_type(bNodeType &ntype)
void node_type_storage(bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node))
Object * get_space_editor_object(const bContext *C)
static void node_shader_init_vertex_color(bNodeTree *, bNode *node)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_vertex_color(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_shader_buts_vertex_color(ui::Layout &layout, bContext *C, PointerRNA *ptr)
@ ITEM_R_SPLIT_EMPTY_NAME
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
PointerRNA RNA_id_pointer_create(ID *id)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
void sh_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
T * DEG_get_evaluated(const Depsgraph *depsgraph, T *id)
GPUNodeLink * GPU_attribute_default_color(GPUMaterial *mat)
void register_node_type_sh_vertex_color()
void node_shader_gpu_bump_tex_coord(GPUMaterial *mat, bNode *, GPUNodeLink **link)
GPUNodeLink * GPU_attribute(GPUMaterial *mat, eCustomDataType type, const char *name)
void node_copy_standard_storage(bNodeTree *, bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
#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_search(PointerRNA *ptr, PropertyRNA *prop, PointerRNA *searchptr, PropertyRNA *searchprop, PropertyRNA *item_searchpropname, std::optional< StringRefNull > name, int icon, bool results_are_suggestions)
void label_multiline(StringRefNull label, int icon, FontStyleAlign align=UI_STYLE_TEXT_LEFT, int max_lines=0)
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)