Blender V5.0
node_texture_separate_color.cc File Reference
#include "BLI_math_color.h"
#include "node_texture_util.hh"
#include "node_util.hh"

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

◆ exec()

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

◆ register_node_type_tex_separate_color()

◆ update()

void update ( bNodeTree * ,
bNode * node )
static

◆ valuefn_a()

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

Definition at line 68 of file node_texture_separate_color.cc.

References in, out, and tex_input_rgba().

Referenced by exec().

◆ valuefn_b()

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

Definition at line 61 of file node_texture_separate_color.cc.

References apply_color_space(), bNode::custom1, in, out, and tex_input_rgba().

Referenced by exec().

◆ valuefn_g()

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

Definition at line 54 of file node_texture_separate_color.cc.

References apply_color_space(), bNode::custom1, in, out, and tex_input_rgba().

Referenced by exec().

◆ valuefn_r()

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

Definition at line 47 of file node_texture_separate_color.cc.

References apply_color_space(), bNode::custom1, in, out, 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 13 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 17 of file node_texture_separate_color.cc.