12#define INTERCEPT_SOCKET_INDEX 1
14#define LENGTH_SOCKET_INDEX 2
28 static const float zero = 0;
41 return get_output_default(socket_out_->identifier, NodeItem::Type::Any);
60 ntype.
declare = file_ns::node_declare;
61 ntype.
gpu_fn = file_ns::node_shader_gpu_hair_info;
#define SH_NODE_HAIR_INFO
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
GPUNodeLink * GPU_constant(const float *num)
GPUNodeLink * GPU_attribute_hair_length(GPUMaterial *mat)
GPUNodeLink * GPU_attribute_hair_intercept(GPUMaterial *mat)
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)
#define NODE_SHADER_MATERIALX_BEGIN
#define NODE_SHADER_MATERIALX_END
void register_node_type_sh_hair_info()
#define LENGTH_SOCKET_INDEX
#define INTERCEPT_SOCKET_INDEX
void sh_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
NodeMaterialXFunction materialx_fn
std::string ui_description
NodeGPUExecFunction gpu_fn
const char * enum_name_legacy
NodeDeclareFunction declare