Blender V2.61 - r43446
Functions | Variables

node_shader_curves.c File Reference

#include "node_shader_util.h"

Go to the source code of this file.

Functions

static void node_shader_exec_curve_vec (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out)
static void node_shader_init_curve_vec (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
static int gpu_shader_curve_vec (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_curve_vec (bNodeTreeType *ttype)
static void node_shader_exec_curve_rgb (void *UNUSED(data), bNode *node, bNodeStack **in, bNodeStack **out)
static void node_shader_init_curve_rgb (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
static int gpu_shader_curve_rgb (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_curve_rgb (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate sh_node_curve_vec_in []
static bNodeSocketTemplate sh_node_curve_vec_out []
static bNodeSocketTemplate sh_node_curve_rgb_in []
static bNodeSocketTemplate sh_node_curve_rgb_out []

Detailed Description

Definition in file node_shader_curves.c.


Function Documentation

static int gpu_shader_curve_rgb ( GPUMaterial mat,
bNode node,
GPUNodeStack in,
GPUNodeStack out 
) [static]
static int gpu_shader_curve_vec ( GPUMaterial mat,
bNode node,
GPUNodeStack in,
GPUNodeStack out 
) [static]
static void node_shader_exec_curve_rgb ( void *  UNUSEDdata,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_shader_exec_curve_vec ( void *  UNUSEDdata,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_shader_init_curve_rgb ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]

Definition at line 114 of file node_shader_curves.c.

References curvemapping_add(), and bNode::storage.

Referenced by register_node_type_sh_curve_rgb().

static void node_shader_init_curve_vec ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]

Definition at line 58 of file node_shader_curves.c.

References curvemapping_add(), and bNode::storage.

Referenced by register_node_type_sh_curve_vec().

void register_node_type_sh_curve_rgb ( bNodeTreeType ttype)
void register_node_type_sh_curve_vec ( bNodeTreeType ttype)

Variable Documentation

Initial value:
 {
    {   SOCK_FLOAT, 1, "Fac",   1.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_FACTOR},
    {   SOCK_RGBA, 1, "Color",  0.0f, 0.0f, 0.0f, 1.0f},
    {   -1, 0, ""   }
}

Definition at line 90 of file node_shader_curves.c.

Initial value:
 {
    {   SOCK_RGBA, 0, "Color"},
    {   -1, 0, ""   }
}

Definition at line 96 of file node_shader_curves.c.

Initial value:
 {
    {   SOCK_FLOAT, 0, "Fac",   1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR},
    {   SOCK_VECTOR, 1, "Vector",   0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_NONE},
    {   -1, 0, ""   }
}

Definition at line 37 of file node_shader_curves.c.

Initial value:
 {
    {   SOCK_VECTOR, 0, "Vector"},
    {   -1, 0, ""   }
}

Definition at line 43 of file node_shader_curves.c.