Blender  V2.93
Functions | Variables
node_shader_normal.c File Reference
#include "node_shader_util.h"

Go to the source code of this file.

Functions

static void node_shader_exec_normal (void *UNUSED(data), int UNUSED(thread), bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), bNodeStack **in, bNodeStack **out)
 
static int gpu_shader_normal (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_normal (void)
 

Variables

static bNodeSocketTemplate sh_node_normal_in []
 
static bNodeSocketTemplate sh_node_normal_out []
 

Function Documentation

◆ gpu_shader_normal()

static int gpu_shader_normal ( GPUMaterial mat,
bNode node,
bNodeExecData UNUSEDexecdata,
GPUNodeStack in,
GPUNodeStack out 
)
static

Definition at line 57 of file node_shader_normal.c.

References GPU_stack_link(), GPU_uniform(), and node.

Referenced by register_node_type_sh_normal().

◆ node_shader_exec_normal()

static void node_shader_exec_normal ( void *  UNUSEDdata,
int   UNUSEDthread,
bNode UNUSEDnode,
bNodeExecData UNUSEDexecdata,
bNodeStack **  in,
bNodeStack **  out 
)
static

◆ register_node_type_sh_normal()

void register_node_type_sh_normal ( void  )

Variable Documentation

◆ sh_node_normal_in

bNodeSocketTemplate sh_node_normal_in[]
static
Initial value:
= {
{SOCK_VECTOR, N_("Normal"), 0.0f, 0.0f, 1.0f, 0.0f, -1.0f, 1.0f, PROP_DIRECTION},
{-1, ""},
}
#define N_(msgid)
@ SOCK_VECTOR
@ PROP_DIRECTION
Definition: RNA_types.h:141

Definition at line 27 of file node_shader_normal.c.

Referenced by register_node_type_sh_normal().

◆ sh_node_normal_out

bNodeSocketTemplate sh_node_normal_out[]
static
Initial value:
= {
{SOCK_VECTOR, N_("Normal"), 0.0f, 0.0f, 1.0f, 0.0f, -1.0f, 1.0f, PROP_DIRECTION},
{SOCK_FLOAT, N_("Dot")},
{-1, ""},
}
@ SOCK_FLOAT

Definition at line 32 of file node_shader_normal.c.

Referenced by register_node_type_sh_normal().