29static void rotate(
float new_co[3],
float a,
const float ax[3],
const float co[3])
35 float cos_a =
cosf(a *
float(2 *
M_PI));
36 float sin_a =
sinf(a *
float(2 *
M_PI));
46 new_co[0] = para[0] + perp[0] + cp[0];
47 new_co[1] = para[1] + perp[1] + cp[1];
48 new_co[2] = para[2] + perp[2] + cp[2];
53 float new_co[3], a, ax[3];
#define NODE_CLASS_DISTORT
void node_register_type(bNodeType &ntype)
void node_type_socket_templates(bNodeType *ntype, bNodeSocketTemplate *inputs, bNodeSocketTemplate *outputs)
void register_node_type_tex_rotate()
void tex_input_vec(float *out, bNodeStack *in, TexParams *params, short thread)
static void exec(void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
void tex_input_rgba(float *out, bNodeStack *in, TexParams *params, short thread)
static void colorfn(float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
MINLINE void mul_v3_fl(float r[3], float f)
MINLINE void cross_v3_v3v3(float r[3], const float a[3], const float b[3])
BMesh const char void * data
void tex_output(bNode *node, bNodeExecData *, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *cdata)
static bke::bNodeSocketTemplate inputs[]
void tex_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
MINLINE void mul_v3_v3fl(float r[3], const float a[3], float f)
float tex_input_value(bNodeStack *in, TexParams *params, short thread)
static bke::bNodeSocketTemplate outputs[]
MINLINE float dot_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
static void rotate(float new_co[3], float a, const float ax[3], const float co[3])
Compact definition of a node socket.
const char * enum_name_legacy