18#define INTERCEPT_SOCKET_INDEX 1
20#define LENGTH_SOCKET_INDEX 2
34 static const float zero = 0;
48 return get_output_default(socket_out_->identifier, NodeItem::Type::Any);
67 ntype.
declare = file_ns::node_declare;
68 ntype.
gpu_fn = file_ns::node_shader_gpu_hair_info;
#define SH_NODE_HAIR_INFO
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static int node_shader_gpu_hair_info(GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
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)
GPUNodeLink * GPU_attribute_hair_length(GPUMaterial *mat)
GPUNodeLink * GPU_constant(const float *num)
void register_node_type_sh_hair_info()
GPUNodeLink * GPU_shading_data()
GPUNodeLink * GPU_attribute_hair_intercept(GPUMaterial *mat)
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
#define LENGTH_SOCKET_INDEX
#define INTERCEPT_SOCKET_INDEX
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare