Blender V4.3
node_texture_translate.cc File Reference
#include "node_texture_util.hh"
#include <cmath>

Go to the source code of this file.

Functions

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_translate ()
 

Variables

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

Function Documentation

◆ colorfn()

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

Definition at line 23 of file node_texture_translate.cc.

References TexParams::co, tex_input_rgba(), and tex_input_vec().

Referenced by exec().

◆ exec()

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

Definition at line 37 of file node_texture_translate.cc.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_translate().

◆ register_node_type_tex_translate()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_VECTOR, N_("Offset"), 0.0f, 0.0f, 0.0f, 0.0f, -10000.0f, 10000.0f, PROP_TRANSLATION},
{-1, ""},
}
@ SOCK_VECTOR
@ SOCK_RGBA
@ PROP_TRANSLATION
Definition RNA_types.hh:164
#define N_(msgid)

Definition at line 12 of file node_texture_translate.cc.

◆ outputs

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

Definition at line 18 of file node_texture_translate.cc.