Blender V4.3
node_texture_distance.cc File Reference
#include "BLI_math_vector.h"
#include "node_texture_util.hh"
#include <cmath>

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()

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

Definition at line 34 of file node_texture_distance.cc.

References tex_output(), and valuefn().

Referenced by register_node_type_tex_distance().

◆ register_node_type_tex_distance()

◆ valuefn()

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

Definition at line 24 of file node_texture_distance.cc.

References len_v3v3(), and tex_input_vec().

Referenced by 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:136
#define N_(msgid)

Definition at line 13 of file node_texture_distance.cc.

◆ outputs

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

Definition at line 19 of file node_texture_distance.cc.