Blender  V3.3
Functions | Variables
node_texture_rotate.c File Reference
#include <math.h>
#include "NOD_texture.h"
#include "node_texture_util.h"

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 *UNUSED(node), bNodeStack **in, short thread)
 
static void exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_rotate (void)
 

Variables

static bNodeSocketTemplate inputs []
 
static bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

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

◆ exec()

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

Definition at line 68 of file node_texture_rotate.c.

References colorfn(), data, node, usdtokens::out(), and tex_output().

Referenced by register_node_type_tex_rotate().

◆ register_node_type_tex_rotate()

void register_node_type_tex_rotate ( void  )

◆ rotate()

static void rotate ( float  new_co[3],
float  a,
const float  ax[3],
const float  co[3] 
)
static

Definition at line 25 of file node_texture_rotate.c.

References Freestyle::a, cosf, cross_v3_v3v3(), dot_v3v3(), M_PI, mul_v3_fl(), mul_v3_v3fl(), and sinf.

Referenced by colorfn().

Variable Documentation

◆ inputs

bNodeSocketTemplate inputs[]
static
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.h:155
@ PROP_NONE
Definition: RNA_types.h:126
#define N_(msgid)

Definition at line 13 of file node_texture_rotate.c.

Referenced by register_node_type_tex_rotate().

◆ outputs

bNodeSocketTemplate outputs[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 20 of file node_texture_rotate.c.

Referenced by register_node_type_tex_rotate().