Blender V4.3
node_texture_valToRgb.cc File Reference
#include "BKE_colorband.hh"
#include "IMB_colormanagement.hh"
#include "node_texture_util.hh"
#include "node_util.hh"

Go to the source code of this file.

Functions

static void valtorgb_colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void valtorgb_exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void valtorgb_init (bNodeTree *, bNode *node)
 
void register_node_type_tex_valtorgb ()
 
static void rgbtobw_valuefn (float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
 
static void rgbtobw_exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_rgbtobw ()
 

Variables

static blender::bke::bNodeSocketTemplate valtorgb_in []
 
static blender::bke::bNodeSocketTemplate valtorgb_out []
 
static blender::bke::bNodeSocketTemplate rgbtobw_in []
 
static blender::bke::bNodeSocketTemplate rgbtobw_out []
 

Function Documentation

◆ register_node_type_tex_rgbtobw()

◆ register_node_type_tex_valtorgb()

◆ rgbtobw_exec()

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

Definition at line 81 of file node_texture_valToRgb.cc.

References rgbtobw_valuefn(), and tex_output().

Referenced by register_node_type_tex_rgbtobw().

◆ rgbtobw_valuefn()

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

Definition at line 73 of file node_texture_valToRgb.cc.

References IMB_colormanagement_get_luminance(), and tex_input_rgba().

Referenced by rgbtobw_exec().

◆ valtorgb_colorfn()

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

Definition at line 24 of file node_texture_valToRgb.cc.

References BKE_colorband_evaluate(), and tex_input_value().

Referenced by valtorgb_exec().

◆ valtorgb_exec()

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

Definition at line 33 of file node_texture_valToRgb.cc.

References tex_output(), and valtorgb_colorfn().

Referenced by register_node_type_tex_valtorgb().

◆ valtorgb_init()

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

Definition at line 43 of file node_texture_valToRgb.cc.

References BKE_colorband_add().

Referenced by register_node_type_tex_valtorgb().

Variable Documentation

◆ rgbtobw_in

blender::bke::bNodeSocketTemplate rgbtobw_in[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color"), 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
{-1, ""},
}
@ SOCK_RGBA
#define N_(msgid)

Definition at line 64 of file node_texture_valToRgb.cc.

Referenced by register_node_type_tex_rgbtobw().

◆ rgbtobw_out

blender::bke::bNodeSocketTemplate rgbtobw_out[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Val"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{-1, ""},
}
@ SOCK_FLOAT

Definition at line 68 of file node_texture_valToRgb.cc.

Referenced by register_node_type_tex_rgbtobw().

◆ valtorgb_in

blender::bke::bNodeSocketTemplate valtorgb_in[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Fac"), 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_FACTOR},
{-1, ""},
}
@ PROP_FACTOR
Definition RNA_types.hh:154

Definition at line 15 of file node_texture_valToRgb.cc.

Referenced by register_node_type_tex_valtorgb().

◆ valtorgb_out

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

Definition at line 19 of file node_texture_valToRgb.cc.

Referenced by register_node_type_tex_valtorgb().