Blender V4.3
node_texture_separate_color.cc File Reference
#include "BLI_listbase.h"
#include "BLI_math_color.h"
#include "NOD_texture.h"
#include "node_texture_util.hh"
#include "node_util.hh"
#include <cmath>

Go to the source code of this file.

Functions

static void apply_color_space (float *out, NodeCombSepColorMode type)
 
static void valuefn_r (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void valuefn_g (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void valuefn_b (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void valuefn_a (float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
 
static void update (bNodeTree *, bNode *node)
 
static void exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_separate_color ()
 

Variables

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

Function Documentation

◆ apply_color_space()

static void apply_color_space ( float * out,
NodeCombSepColorMode type )
static

◆ exec()

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

◆ register_node_type_tex_separate_color()

◆ update()

static void update ( bNodeTree * ,
bNode * node )
static

◆ valuefn_a()

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

Definition at line 71 of file node_texture_separate_color.cc.

References tex_input_rgba().

Referenced by exec().

◆ valuefn_b()

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

Definition at line 64 of file node_texture_separate_color.cc.

References apply_color_space(), and tex_input_rgba().

Referenced by exec().

◆ valuefn_g()

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

Definition at line 57 of file node_texture_separate_color.cc.

References apply_color_space(), and tex_input_rgba().

Referenced by exec().

◆ valuefn_r()

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

Definition at line 50 of file node_texture_separate_color.cc.

References apply_color_space(), and tex_input_rgba().

Referenced by exec().

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 16 of file node_texture_separate_color.cc.

◆ outputs

Initial value:
= {
{SOCK_FLOAT, N_("Red")},
{SOCK_FLOAT, N_("Green")},
{SOCK_FLOAT, N_("Blue")},
{SOCK_FLOAT, N_("Alpha")},
{-1, ""},
}
@ SOCK_FLOAT

Definition at line 20 of file node_texture_separate_color.cc.