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

Go to the source code of this file.

Functions

static void node_shader_exec_material (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
static void node_shader_init_material (bNode *node)
static GPUNodeLinkgpu_get_input_link (GPUNodeStack *in)
static int gpu_shader_material (GPUMaterial *mat, bNode *node, GPUNodeStack *in, GPUNodeStack *out)
void register_node_type_sh_material (ListBase *lb)
void register_node_type_sh_material_ext (ListBase *lb)

Variables

static bNodeSocketType sh_node_material_in []
static bNodeSocketType sh_node_material_out []
static bNodeSocketType sh_node_material_ext_in []
static bNodeSocketType sh_node_material_ext_out []

Detailed Description

Definition in file SHD_material.c.


Function Documentation

static GPUNodeLink* gpu_get_input_link ( GPUNodeStack in) [static]

Definition at line 215 of file SHD_material.c.

References GPU_uniform(), GPUNodeStack::link, and GPUNodeStack::vec.

Referenced by gpu_shader_material().

static int gpu_shader_material ( GPUMaterial mat,
bNode node,
GPUNodeStack in,
GPUNodeStack out 
) [static]
static void node_shader_exec_material ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]
static void node_shader_init_material ( bNode node) [static]
void register_node_type_sh_material ( ListBase lb)
void register_node_type_sh_material_ext ( ListBase lb)

Variable Documentation

Initial value:
 {
        {       SOCK_RGBA, 1, "Color",          0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_RGBA, 1, "Spec",           0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Refl",          0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VECTOR, 1, "Normal",       0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
        {       SOCK_RGBA, 1, "Mirror",         0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Ambient",       0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Emit",          0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "SpecTra",       0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Ray Mirror",    0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Alpha",         0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Translucency",  0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 56 of file SHD_material.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},
        {       SOCK_VECTOR, 0, "Normal",       0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
        {       SOCK_RGBA, 0, "Diffuse",                0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_RGBA, 0, "Spec",           0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_RGBA, 0, "AO",             0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 71 of file SHD_material.c.

Initial value:
 {
        {       SOCK_RGBA, 1, "Color",          0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_RGBA, 1, "Spec",           0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VALUE, 1, "Refl",          0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f},
        {       SOCK_VECTOR, 1, "Normal",       0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 39 of file SHD_material.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},
        {       SOCK_VECTOR, 0, "Normal",       0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f},
        {       -1, 0, ""       }
}

Definition at line 47 of file SHD_material.c.