Blender V2.61 - r43446
Functions | Variables

node_shader_attribute.c File Reference

#include "../node_shader_util.h"

Go to the source code of this file.

Functions

static void node_shader_init_attribute (bNodeTree *UNUSED(ntree), bNode *node, bNodeTemplate *UNUSED(ntemp))
void register_node_type_sh_attribute (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate sh_node_attribute_out []

Function Documentation

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

Definition at line 39 of file node_shader_attribute.c.

References MEM_callocN(), and bNode::storage.

Referenced by register_node_type_sh_attribute().

void register_node_type_sh_attribute ( bNodeTreeType ttype)

Variable Documentation

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

Definition at line 32 of file node_shader_attribute.c.