24 .default_value({0.0f, 0.0f, 1.0f})
35 const bNodeSocket &normal_output = *
node.output_by_identifier(
"Normal"_ustr);
62 ntype.
ui_description =
"Input normalized normal values to other nodes in the tree";
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void construct_and_set_matching_fn(Args &&...args)
void node_register_type(bNodeType &ntype)
MatBase< T, NumCol, NumRow > normalize(const MatBase< T, NumCol, NumRow > &a)
static int node_gpu_material(GPUMaterial *material, bNode *node, bNodeExecData *, GPUNodeStack *, GPUNodeStack *outputs)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static float3 get_normal(const bNode &node)
static void node_build_multi_function(nodes::NodeMultiFunctionBuilder &builder)
GPUNodeLink * GPU_uniform(const float *num)
bool GPU_link(GPUMaterial *mat, const char *name,...)
void cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
NodeDeclareFunction declare