Blender  V2.59
Functions | Variables
SHD_mixRgb.c File Reference
#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 []

Detailed Description

Definition in file SHD_mixRgb.c.


Function Documentation

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]
void register_node_type_sh_mix_rgb ( ListBase lb)

Variable Documentation

Initial value:
 {
        {       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.

Initial value:
 {
        {       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.