Blender V5.0
node_texture_rotate.cc File Reference
#include <cmath>
#include "BLI_math_vector.h"
#include "node_texture_util.hh"

Go to the source code of this file.

Functions

static void rotate (float new_co[3], float a, const float ax[3], const float co[3])
static void colorfn (float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
static void exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_rotate ()

Variables

static blender::bke::bNodeSocketTemplate inputs []
static blender::bke::bNodeSocketTemplate outputs []

Function Documentation

◆ colorfn()

void colorfn ( float * out,
TexParams * p,
bNode * ,
bNodeStack ** in,
short thread )
static

◆ exec()

void exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 64 of file node_texture_rotate.cc.

References colorfn(), data, in, out, and tex_output().

◆ register_node_type_tex_rotate()

◆ rotate()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Turns"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE},
{SOCK_VECTOR, N_("Axis"), 0.0f, 0.0f, 1.0f, 0.0f, -1.0f, 1.0f, PROP_DIRECTION},
{-1, ""},
}
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_DIRECTION
Definition RNA_types.hh:262
@ PROP_NONE
Definition RNA_types.hh:233
#define N_(msgid)

Definition at line 15 of file node_texture_rotate.cc.

◆ outputs

Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 22 of file node_texture_rotate.cc.