Blender V2.61 - r43446
Functions | Variables

node_texture_distance.c File Reference

#include <math.h>
#include "BLI_math.h"
#include "node_texture_util.h"
#include "NOD_texture.h"

Go to the source code of this file.

Functions

static void valuefn (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_distance (bNodeTreeType *ttype)

Variables

static bNodeSocketTemplate inputs []
static bNodeSocketTemplate outputs []

Detailed Description

Definition in file node_texture_distance.c.


Function Documentation

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

Definition at line 59 of file node_texture_distance.c.

References tex_output(), and valuefn().

Referenced by register_node_type_tex_distance().

void register_node_type_tex_distance ( bNodeTreeType ttype)
static void valuefn ( float *  out,
TexParams p,
bNode UNUSEDnode,
bNodeStack **  in,
short  thread 
) [static]

Definition at line 49 of file node_texture_distance.c.

References len_v3v3(), and tex_input_vec().

Referenced by exec().


Variable Documentation

Initial value:
 {
    { SOCK_VECTOR, 1, "Coordinate 1", 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE },
    { SOCK_VECTOR, 1, "Coordinate 2", 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE },
    { -1, 0, "" } 
}

Definition at line 38 of file node_texture_distance.c.

Initial value:
 {
    { SOCK_FLOAT, 0, "Value" },
    { -1, 0, "" }
}

Definition at line 44 of file node_texture_distance.c.