37 const char **r_disabled_hint)
40 *r_disabled_hint =
RPT_(
"Not a texture node tree");
48 const std::optional<int16_t> legacy_type)
70 in->vec[1] =
in->vec[2] =
in->vec[0];
73 memcpy(
out,
in->vec,
num *
sizeof(
float));
91 out[0] =
out[0] * 0.5f + 0.5f;
92 out[1] =
out[1] * 0.5f + 0.5f;
93 out[2] =
out[2] * 0.5f + 0.5f;
108 out->previewco =
in->co;
109 out->cfra =
in->cfra;
110 out->mtex =
in->mtex;
122 if (node->is_muted()) {
#define LISTBASE_FOREACH(type, var, list)
ATTR_WARN_UNUSED_RESULT const size_t num
void * MEM_callocN(size_t len, const char *str)
void node_type_base(bNodeType &ntype, std::string idname, std::optional< int16_t > legacy_type=std::nullopt)
static void texfn(float *result, TexParams *p, bNode *node, bNodeStack **in, MapFn map_inputs, short thread)
void tex_output(bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
void tex_input_vec(float *out, bNodeStack *in, TexParams *params, short thread)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
bool tex_node_poll_default(const blender::bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
static void tex_call_delegate(TexDelegate *dg, float *out, TexParams *params, short thread)
void tex_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
void params_from_cdata(TexParams *out, TexCallData *in)
void ntreeTexCheckCyclics(bNodeTree *ntree)
static void tex_input(float *out, int num, bNodeStack *in, TexParams *params, short thread)
void(*)(float *out, TexParams *params, bNode *node, bNodeStack **in, short thread) TexFn
bool node_insert_link_default(blender::bke::NodeInsertLinkParams &)
bNodeStack * in[MAX_SOCKET]
struct bNodeTree * nodetree
bNodeRuntimeHandle * runtime
bool(* insert_link)(NodeInsertLinkParams ¶ms)
bool(* poll)(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)