Blender  V2.93
Classes | Functions | Variables
node_shader_valToRgb.cc File Reference
#include "IMB_colormanagement.h"
#include "DNA_texture_types.h"
#include "BLI_color.hh"
#include "node_shader_util.h"

Go to the source code of this file.

Classes

class  ColorBandFunction
 

Functions

static void node_shader_exec_valtorgb (void *UNUSED(data), int UNUSED(thread), bNode *node, bNodeExecData *UNUSED(execdata), bNodeStack **in, bNodeStack **out)
 
static void node_shader_init_valtorgb (bNodeTree *UNUSED(ntree), bNode *node)
 
static int gpu_shader_valtorgb (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void sh_node_valtorgb_expand_in_mf_network (blender::nodes::NodeMFNetworkBuilder &builder)
 
void register_node_type_sh_valtorgb (void)
 
static void node_shader_exec_rgbtobw (void *UNUSED(data), int UNUSED(thread), bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), bNodeStack **in, bNodeStack **out)
 
static int gpu_shader_rgbtobw (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_rgbtobw (void)
 

Variables

static bNodeSocketTemplate sh_node_valtorgb_in []
 
static bNodeSocketTemplate sh_node_valtorgb_out []
 
static bNodeSocketTemplate sh_node_rgbtobw_in []
 
static bNodeSocketTemplate sh_node_rgbtobw_out []
 

Function Documentation

◆ gpu_shader_rgbtobw()

static int gpu_shader_rgbtobw ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

Definition at line 210 of file node_shader_valToRgb.cc.

References GPU_stack_link(), and node.

Referenced by register_node_type_sh_rgbtobw().

◆ gpu_shader_valtorgb()

static int gpu_shader_valtorgb ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

◆ node_shader_exec_rgbtobw()

static void node_shader_exec_rgbtobw ( void *  UNUSEDdata,
int   UNUSEDthread,
bNode UNUSEDnode,
bNodeExecData UNUSEDexecdata,
bNodeStack **  in,
bNodeStack **  out 
)
static

◆ node_shader_exec_valtorgb()

static void node_shader_exec_valtorgb ( void *  UNUSEDdata,
int   UNUSEDthread,
bNode node,
bNodeExecData UNUSEDexecdata,
bNodeStack **  in,
bNodeStack **  out 
)
static

◆ node_shader_init_valtorgb()

static void node_shader_init_valtorgb ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 62 of file node_shader_valToRgb.cc.

References BKE_colorband_add(), and node.

Referenced by register_node_type_sh_valtorgb().

◆ register_node_type_sh_rgbtobw()

void register_node_type_sh_rgbtobw ( void  )

◆ register_node_type_sh_valtorgb()

void register_node_type_sh_valtorgb ( void  )

◆ sh_node_valtorgb_expand_in_mf_network()

static void sh_node_valtorgb_expand_in_mf_network ( blender::nodes::NodeMFNetworkBuilder builder)
static

Variable Documentation

◆ sh_node_rgbtobw_in

bNodeSocketTemplate sh_node_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 190 of file node_shader_valToRgb.cc.

Referenced by register_node_type_sh_rgbtobw().

◆ sh_node_rgbtobw_out

bNodeSocketTemplate sh_node_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 192 of file node_shader_valToRgb.cc.

Referenced by register_node_type_sh_rgbtobw().

◆ sh_node_valtorgb_in

bNodeSocketTemplate sh_node_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 33 of file node_shader_valToRgb.cc.

Referenced by register_node_type_sh_valtorgb().

◆ sh_node_valtorgb_out

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

Definition at line 37 of file node_shader_valToRgb.cc.

Referenced by register_node_type_sh_valtorgb().