Blender V2.61 - r43446
|
#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 [] |
Definition in file node_texture_distance.c.
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 | ) |
Definition at line 64 of file node_texture_distance.c.
References exec(), NODE_CLASS_CONVERTOR, NODE_OPTIONS, node_type_base(), node_type_exec(), node_type_size(), node_type_socket_templates(), node_type_storage(), nodeRegisterType(), NULL, and TEX_NODE_DISTANCE.
Referenced by registerTextureNodes().
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().
bNodeSocketTemplate inputs[] [static] |
{ { 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.
bNodeSocketTemplate outputs[] [static] |
{ { SOCK_FLOAT, 0, "Value" }, { -1, 0, "" } }
Definition at line 44 of file node_texture_distance.c.