Blender V5.0
node_texture_distance.cc File Reference

Go to the source code of this file.

Functions

static void valuefn (float *out, TexParams *p, bNode *, bNodeStack **in, short thread)
static void exec (void *data, int, bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack **out)
void register_node_type_tex_distance ()

Variables

static blender::bke::bNodeSocketTemplate inputs []
static blender::bke::bNodeSocketTemplate outputs []

Function Documentation

◆ exec()

void exec ( void * data,
int ,
bNode * node,
bNodeExecData * execdata,
bNodeStack ** in,
bNodeStack ** out )
static

Definition at line 33 of file node_texture_distance.cc.

References data, in, out, tex_output(), and valuefn().

◆ register_node_type_tex_distance()

◆ valuefn()

void valuefn ( float * out,
TexParams * p,
bNode * ,
bNodeStack ** in,
short thread )
static

Definition at line 23 of file node_texture_distance.cc.

References in, len_v3v3(), out, and tex_input_vec().

Referenced by exec(), and exec().

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_VECTOR, N_("Coordinate 1"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE},
{SOCK_VECTOR, N_("Coordinate 2"), 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, PROP_NONE},
{-1, ""},
}
@ SOCK_VECTOR
@ PROP_NONE
Definition RNA_types.hh:233
#define N_(msgid)

Definition at line 12 of file node_texture_distance.cc.

◆ outputs

Initial value:
= {
{SOCK_FLOAT, N_("Value")},
{-1, ""},
}
@ SOCK_FLOAT

Definition at line 18 of file node_texture_distance.cc.