Blender V4.3
node_texture_invert.cc File Reference

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

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_invert.cc.

References col, copy_v3_v3(), and tex_input_rgba().

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_invert.cc.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_invert().

◆ register_node_type_tex_invert()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}
@ SOCK_RGBA
#define N_(msgid)

Definition at line 13 of file node_texture_invert.cc.

◆ outputs

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

Definition at line 18 of file node_texture_invert.cc.