15 b.use_custom_socket_order();
16 b.allow_any_socket_order();
25 static auto fn = mf::build::SI2_SO<float3, float4x4, float3>(
38 return GPU_stack_link(material,
node,
"node_function_transform_direction", inputs, outputs);
46 ntype.
ui_name =
"Transform Direction";
48 "Apply a transformation matrix (excluding translation) to the given vector";
#define NODE_CLASS_CONVERTER
#define FN_NODE_TRANSFORM_DIRECTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_matching_fn(const mf::MultiFunction *fn)
void node_register_type(bNodeType &ntype)
VecBase< T, 3 > transform_direction(const MatBase< T, 3, 3 > &mat, const VecBase< T, 3 > &direction)
bool GPU_stack_link(GPUMaterial *mat, const bNode *node, const char *name, GPUNodeStack *in, GPUNodeStack *out,...)
void fn_cmp_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
MatBase< float, 4, 4 > float4x4
VecBase< float, 3 > float3
std::string ui_description
NodeGPUExecFunction gpu_fn
NodeMultiFunctionBuildFunction build_multi_function
const char * enum_name_legacy
NodeDeclareFunction declare