Blender  V3.3
Functions | Variables
node_texture_mixRgb.c File Reference
#include "NOD_texture.h"
#include "node_texture_util.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 UNUSED(thread), bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
 
void register_node_type_tex_mix_rgb (void)
 

Variables

static bNodeSocketTemplate inputs []
 
static bNodeSocketTemplate outputs []
 

Function Documentation

◆ colorfn()

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

Definition at line 23 of file node_texture_mixRgb.c.

References CLAMP, copy_v4_v4(), node, usdtokens::out(), ramp_blend(), tex_input_rgba(), and tex_input_value().

Referenced by exec().

◆ exec()

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

Definition at line 42 of file node_texture_mixRgb.c.

References colorfn(), data, node, usdtokens::out(), and tex_output().

Referenced by register_node_type_tex_mix_rgb().

◆ register_node_type_tex_mix_rgb()

void register_node_type_tex_mix_rgb ( void  )

Variable Documentation

◆ inputs

bNodeSocketTemplate inputs[]
static
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.h:126
#define N_(msgid)

Definition at line 12 of file node_texture_mixRgb.c.

Referenced by register_node_type_tex_mix_rgb().

◆ outputs

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

Definition at line 18 of file node_texture_mixRgb.c.

Referenced by register_node_type_tex_mix_rgb().