Blender  V2.59
Functions | Variables
SHD_valToRgb.c File Reference
#include "../SHD_util.h"

Go to the source code of this file.

Functions

static void node_shader_exec_valtorgb (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out)
static void node_shader_init_valtorgb (bNode *node)
static int gpu_shader_valtorgb (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_valtorgb (ListBase *lb)
static void node_shader_exec_rgbtobw (void *UNUSED(data), bNode *UNUSED(node), bNodeStack **in, bNodeStack **out)
static int gpu_shader_rgbtobw (GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_rgbtobw (ListBase *lb)

Variables

static bNodeSocketType sh_node_valtorgb_in []
static bNodeSocketType sh_node_valtorgb_out []
static bNodeSocketType sh_node_rgbtobw_in []
static bNodeSocketType sh_node_rgbtobw_out []

Detailed Description

Definition in file SHD_valToRgb.c.


Function Documentation

static int gpu_shader_rgbtobw ( GPUMaterial mat,
bNode UNUSEDnode,
GPUNodeStack in,
GPUNodeStack out 
) [static]

Definition at line 111 of file SHD_valToRgb.c.

References GPU_stack_link().

Referenced by register_node_type_sh_rgbtobw().

static int gpu_shader_valtorgb ( GPUMaterial mat,
bNode node,
GPUNodeStack in,
GPUNodeStack out 
) [static]
static void node_shader_exec_rgbtobw ( void *  UNUSEDdata,
bNode UNUSEDnode,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 103 of file SHD_valToRgb.c.

References bNodeStack::vec.

Referenced by register_node_type_sh_rgbtobw().

static void node_shader_exec_valtorgb ( void *  UNUSEDdata,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_shader_init_valtorgb ( bNode node) [static]

Definition at line 62 of file SHD_valToRgb.c.

References add_colorband(), and bNode::storage.

Referenced by register_node_type_sh_valtorgb().

void register_node_type_sh_rgbtobw ( ListBase lb)
void register_node_type_sh_valtorgb ( ListBase lb)

Variable Documentation

Initial value:
 {
   {    SOCK_RGBA, 1, "Color",                  0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 1.0f},
   {    -1, 0, ""       }
}

Definition at line 93 of file SHD_valToRgb.c.

Initial value:
 {
   {    SOCK_VALUE, 0, "Val",                   0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
   {    -1, 0, ""       }
}

Definition at line 97 of file SHD_valToRgb.c.

Initial value:
 {
        {       SOCK_VALUE, 1, "Fac",                   0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 38 of file SHD_valToRgb.c.

Initial value:
 {
        {       SOCK_RGBA, 0, "Color",                  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 0, "Alpha",                 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 42 of file SHD_valToRgb.c.