Blender  V3.3
Functions | Variables
node_texture_valToNor.c File Reference
#include "NOD_texture.h"
#include "node_texture_util.h"

Go to the source code of this file.

Functions

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

Variables

static bNodeSocketTemplate inputs []
 
static bNodeSocketTemplate outputs []
 

Function Documentation

◆ exec()

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

Definition at line 53 of file node_texture_valToNor.c.

References data, node, normalfn(), usdtokens::out(), and tex_output().

Referenced by register_node_type_tex_valtonor().

◆ normalfn()

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

Definition at line 22 of file node_texture_valToNor.c.

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

Referenced by exec().

◆ register_node_type_tex_valtonor()

void register_node_type_tex_valtonor ( void  )

Variable Documentation

◆ inputs

bNodeSocketTemplate inputs[]
static
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.h:126
@ PROP_UNSIGNED
Definition: RNA_types.h:142
#define N_(msgid)

Definition at line 11 of file node_texture_valToNor.c.

Referenced by register_node_type_tex_valtonor().

◆ outputs

bNodeSocketTemplate outputs[]
static
Initial value:
= {
{SOCK_VECTOR, N_("Normal")},
{-1, ""},
}
@ SOCK_VECTOR

Definition at line 17 of file node_texture_valToNor.c.

Referenced by register_node_type_tex_valtonor().