Blender V4.3
node_texture_mixRgb.cc File Reference
#include "node_texture_util.hh"
#include "node_util.hh"
#include "BKE_material.h"
#include "BLI_math_vector.h"

Go to the source code of this file.

Functions

static void colorfn (float *out, TexParams *p, bNode *node, bNodeStack **in, short thread)
 
static void exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_mix_rgb ()
 

Variables

static blender::bke::bNodeSocketTemplate inputs []
 
static blender::bke::bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

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

Definition at line 28 of file node_texture_mixRgb.cc.

References CLAMP, copy_v4_v4(), ramp_blend(), tex_input_rgba(), and tex_input_value().

Referenced by exec().

◆ exec()

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

Definition at line 47 of file node_texture_mixRgb.cc.

References colorfn(), and tex_output().

Referenced by register_node_type_tex_mix_rgb().

◆ register_node_type_tex_mix_rgb()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_FLOAT, N_("Factor"), 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, PROP_NONE},
{SOCK_RGBA, N_("Color1"), 0.5f, 0.5f, 0.5f, 1.0f},
{SOCK_RGBA, N_("Color2"), 0.5f, 0.5f, 0.5f, 1.0f},
{-1, ""},
}
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_NONE
Definition RNA_types.hh:136
#define N_(msgid)

Definition at line 17 of file node_texture_mixRgb.cc.

◆ outputs

Initial value:
= {
{SOCK_RGBA, N_("Color")},
{-1, ""},
}

Definition at line 23 of file node_texture_mixRgb.cc.