Blender V2.61 - r43446
Functions | Variables

node_shader_material.c File Reference

#include "node_shader_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 (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
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 (bNodeTreeType *ttype)
void register_node_type_sh_material_ext (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate sh_node_material_in []
static bNodeSocketTemplate sh_node_material_out []
static bNodeSocketTemplate sh_node_material_ext_in []
static bNodeSocketTemplate sh_node_material_ext_out []

Detailed Description

Definition in file node_shader_material.c.


Function Documentation

static GPUNodeLink* gpu_get_input_link ( GPUNodeStack in) [static]

Definition at line 211 of file node_shader_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 ( bNodeTree UNUSEDntree,
bNode node,
bNodeTemplate UNUSEDntemp 
) [static]
void register_node_type_sh_material ( bNodeTreeType ttype)
void register_node_type_sh_material_ext ( bNodeTreeType ttype)

Variable Documentation

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

Definition at line 54 of file node_shader_material.c.

Initial value:
 {
    {   SOCK_RGBA, 0, "Color"},
    {   SOCK_FLOAT, 0, "Alpha"},
    {   SOCK_VECTOR, 0, "Normal"},
    {   SOCK_RGBA, 0, "Diffuse"},
    {   SOCK_RGBA, 0, "Spec"},
    {   SOCK_RGBA, 0, "AO"},
    {   -1, 0, ""   }
}

Definition at line 69 of file node_shader_material.c.

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

Definition at line 37 of file node_shader_material.c.

Initial value:
 {
    {   SOCK_RGBA, 0, "Color"},
    {   SOCK_FLOAT, 0, "Alpha"},
    {   SOCK_VECTOR, 0, "Normal"},
    {   -1, 0, ""   }
}

Definition at line 45 of file node_shader_material.c.