Blender  V2.59
Functions | Variables
TEX_valToNor.c File Reference
#include "../TEX_util.h"
#include "TEX_node.h"

Go to the source code of this file.

Functions

static void normalfn (float *out, TexParams *p, bNode *UNUSED(node), bNodeStack **in, short thread)
static void exec (void *data, bNode *node, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_valtonor (ListBase *lb)

Variables

static bNodeSocketType inputs []
static bNodeSocketType outputs []

Detailed Description

Definition in file TEX_valToNor.c.


Function Documentation

static void exec ( void *  data,
bNode node,
bNodeStack **  in,
bNodeStack **  out 
) [static]

Definition at line 79 of file TEX_valToNor.c.

References normalfn(), and tex_output().

Referenced by register_node_type_tex_valtonor().

static void normalfn ( float *  out,
TexParams p,
bNode UNUSEDnode,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 48 of file TEX_valToNor.c.

References TexParams::co, co, p, tex_input_value(), and simple_enum_gen::val.

Referenced by exec().

void register_node_type_tex_valtonor ( ListBase lb)

Variable Documentation

bNodeSocketType inputs[] [static]
Initial value:
 { 
        { SOCK_VALUE, 1, "Val",   0.0f,   0.0f, 0.0f, 1.0f,  0.0f,   1.0f },
        { SOCK_VALUE, 1, "Nabla", 0.025f, 0.0f, 0.0f, 0.0f,  0.001f, 0.1f },
        { -1, 0, "" } 
}

Definition at line 37 of file TEX_valToNor.c.

Initial value:
 { 
        { SOCK_VECTOR, 0, "Normal", 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f }, 
        { -1, 0, "" } 
}

Definition at line 43 of file TEX_valToNor.c.