Blender  V2.93
Functions | Variables
node_texture_valToRgb.c File Reference
#include "IMB_colormanagement.h"
#include "NOD_texture.h"
#include "node_texture_util.h"

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 UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
static void valtorgb_init (bNodeTree *UNUSED(ntree), bNode *node)
 
void register_node_type_tex_valtorgb (void)
 
static void rgbtobw_valuefn (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
 
static void rgbtobw_exec (void *data, int UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_rgbtobw (void)
 

Variables

static bNodeSocketTemplate valtorgb_in []
 
static bNodeSocketTemplate valtorgb_out []
 
static bNodeSocketTemplate rgbtobw_in []
 
static bNodeSocketTemplate rgbtobw_out []
 

Function Documentation

◆ register_node_type_tex_rgbtobw()

void register_node_type_tex_rgbtobw ( void  )

◆ register_node_type_tex_valtorgb()

void register_node_type_tex_valtorgb ( void  )

◆ rgbtobw_exec()

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

Definition at line 94 of file node_texture_valToRgb.c.

References data, node, rgbtobw_valuefn(), and tex_output().

Referenced by register_node_type_tex_rgbtobw().

◆ rgbtobw_valuefn()

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

Definition at line 86 of file node_texture_valToRgb.c.

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 38 of file node_texture_valToRgb.c.

References BKE_colorband_evaluate(), node, and tex_input_value().

Referenced by valtorgb_exec().

◆ valtorgb_exec()

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

Definition at line 47 of file node_texture_valToRgb.c.

References data, node, tex_output(), and valtorgb_colorfn().

Referenced by register_node_type_tex_valtorgb().

◆ valtorgb_init()

static void valtorgb_init ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 57 of file node_texture_valToRgb.c.

References BKE_colorband_add(), and node.

Referenced by register_node_type_tex_valtorgb().

Variable Documentation

◆ rgbtobw_in

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

Definition at line 77 of file node_texture_valToRgb.c.

Referenced by register_node_type_tex_rgbtobw().

◆ rgbtobw_out

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 81 of file node_texture_valToRgb.c.

Referenced by register_node_type_tex_rgbtobw().

◆ valtorgb_in

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.h:131

Definition at line 29 of file node_texture_valToRgb.c.

Referenced by register_node_type_tex_valtorgb().

◆ valtorgb_out

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

Definition at line 33 of file node_texture_valToRgb.c.

Referenced by register_node_type_tex_valtorgb().