|
Blender
V2.59
|
#include "../SHD_util.h"Go to the source code of this file.
Functions | |
| static void | node_shader_exec_mix_rgb (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out) |
| static int | gpu_shader_mix_rgb (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out) |
| void | register_node_type_sh_mix_rgb (ListBase *lb) |
Variables | |
| static bNodeSocketType | sh_node_mix_rgb_in [] |
| static bNodeSocketType | sh_node_mix_rgb_out [] |
Definition in file SHD_mixRgb.c.
| static int gpu_shader_mix_rgb | ( | GPUMaterial * | mat, |
| bNode * | node, | ||
| GPUNodeStack * | in, | ||
| GPUNodeStack * | out | ||
| ) | [static] |
Definition at line 67 of file SHD_mixRgb.c.
References bNode::custom1, GPU_stack_link(), and names.
Referenced by register_node_type_sh_mix_rgb().
| static void node_shader_exec_mix_rgb | ( | void * | UNUSEDdata, |
| bNode * | node, | ||
| bNodeStack ** | in, | ||
| bNodeStack ** | out | ||
| ) | [static] |
Definition at line 49 of file SHD_mixRgb.c.
References CLAMP(), bNode::custom1, nodestack_get_vec(), ramp_blend(), SOCK_VALUE, SOCK_VECTOR, and VECCOPY.
Referenced by register_node_type_sh_mix_rgb().
| void register_node_type_sh_mix_rgb | ( | ListBase * | lb | ) |
Definition at line 78 of file SHD_mixRgb.c.
References gpu_shader_mix_rgb(), node_blend_label(), NODE_CLASS_OP_COLOR, NODE_OPTIONS, node_shader_exec_mix_rgb(), node_type_base(), node_type_exec(), node_type_gpu(), node_type_label(), node_type_size(), nodeRegisterType(), and SH_NODE_MIX_RGB.
Referenced by registerShaderNodes().
bNodeSocketType sh_node_mix_rgb_in[] [static] |
{
{ SOCK_VALUE, 1, "Fac", 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{ SOCK_RGBA, 1, "Color1", 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
{ SOCK_RGBA, 1, "Color2", 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 38 of file SHD_mixRgb.c.
bNodeSocketType sh_node_mix_rgb_out[] [static] |
{
{ SOCK_RGBA, 0, "Color", 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
{ -1, 0, "" }
}
Definition at line 44 of file SHD_mixRgb.c.