39 const char **r_disabled_hint)
42 *r_disabled_hint =
RPT_(
"Not a texture node tree");
50 const std::optional<int16_t> legacy_type)
72 in->vec[1] =
in->vec[2] =
in->vec[0];
75 memcpy(
out,
in->vec,
num *
sizeof(
float));
93 out[0] =
out[0] * 0.5f + 0.5f;
94 out[1] =
out[1] * 0.5f + 0.5f;
95 out[2] =
out[2] * 0.5f + 0.5f;
110 out->previewco =
in->co;
111 out->cfra =
in->cfra;
112 out->mtex =
in->mtex;
124 if (
node->is_muted()) {
156 Tex *tex = id_cast<Tex *>(
node.id);
void node_type_base(bNodeType &ntype, UString idname, std::optional< int16_t > legacy_type=std::nullopt)
void tex_input_vec(float *out, bNodeStack *in, TexParams *params, short thread)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
void(*)(float *out, TexParams *params, bNode *node, bNodeStack **in, short thread) TexFn
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void tex_output(bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
void params_from_cdata(TexParams *out, TexCallData *in)
void tex_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bool node_insert_link_default(bke::NodeInsertLinkParams &)
ATTR_WARN_UNUSED_RESULT const size_t num
bool tex_node_poll_default(const bke::bNodeType *, const bNodeTree *ntree, const char **r_disabled_hint)
void ntreeTexCheckCyclics(struct bNodeTree *ntree)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
static void tex_call_delegate(TexDelegate *dg, float *out, TexParams *params, short thread)
static void tex_input(float *out, int num, bNodeStack *in, TexParams *params, short thread)
bNodeStack * in[MAX_SOCKET]
struct bNodeTree * nodetree
bke::bNodeRuntime * runtime
bool(*) poll(const bNodeType *ntype, const bNodeTree *nodetree, const char **r_disabled_hint)
bool(*) insert_link(NodeInsertLinkParams ¶ms)