Blender  V3.3
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

◆ rgbtobw_valuefn()

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

◆ valtorgb_colorfn()

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

Definition at line 22 of file node_texture_valToRgb.c.

References BKE_colorband_evaluate(), node, usdtokens::out(), 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

◆ valtorgb_init()

static void valtorgb_init ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 41 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, ""},
}
@ SOCK_RGBA
#define N_(msgid)

Definition at line 61 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 65 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:144

Definition at line 13 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 17 of file node_texture_valToRgb.c.

Referenced by register_node_type_tex_valtorgb().