Blender V5.0
node_texture_valToNor.cc File Reference

Go to the source code of this file.

Functions

static void normalfn (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_valtonor ()

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 53 of file node_texture_valToNor.cc.

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

◆ normalfn()

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

Definition at line 22 of file node_texture_valToNor.cc.

References TexParams::co, in, nor, out, and tex_input_value().

Referenced by exec().

◆ register_node_type_tex_valtonor()

Variable Documentation

◆ inputs

Initial value:
= {
{SOCK_FLOAT, N_("Val"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_NONE},
{SOCK_FLOAT, N_("Nabla"), 0.025f, 0.0f, 0.0f, 0.0f, 0.001f, 0.1f, PROP_UNSIGNED},
{-1, ""},
}
@ SOCK_FLOAT
@ PROP_NONE
Definition RNA_types.hh:233
@ PROP_UNSIGNED
Definition RNA_types.hh:249
#define N_(msgid)

Definition at line 11 of file node_texture_valToNor.cc.

◆ outputs

Initial value:
= {
{SOCK_VECTOR, N_("Normal")},
{-1, ""},
}
@ SOCK_VECTOR

Definition at line 17 of file node_texture_valToNor.cc.