Blender V4.3
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()

static 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 normalfn(), and tex_output().

Referenced by register_node_type_tex_valtonor().

◆ normalfn()

static 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, nor, 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:136
@ PROP_UNSIGNED
Definition RNA_types.hh:152
#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.