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

Go to the source code of this file.

Functions

static void node_shader_init_normal_map (bNodeTree *UNUSED(ntree), bNode *node)
 
static void node_shader_exec_normal_map (void *UNUSED(data), int UNUSED(thread), bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), bNodeStack **UNUSED(in), bNodeStack **UNUSED(out))
 
static int gpu_shader_normal_map (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_normal_map (void)
 

Variables

static bNodeSocketTemplate sh_node_normal_map_in []
 
static bNodeSocketTemplate sh_node_normal_map_out []
 

Function Documentation

◆ gpu_shader_normal_map()

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

◆ node_shader_exec_normal_map()

static void node_shader_exec_normal_map ( void *  UNUSEDdata,
int   UNUSEDthread,
bNode UNUSEDnode,
bNodeExecData UNUSEDexecdata,
bNodeStack **  UNUSEDin,
bNodeStack **  UNUSEDout 
)
static

Definition at line 41 of file node_shader_normal_map.c.

Referenced by register_node_type_sh_normal_map().

◆ node_shader_init_normal_map()

static void node_shader_init_normal_map ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 35 of file node_shader_normal_map.c.

References MEM_callocN, and node.

Referenced by register_node_type_sh_normal_map().

◆ register_node_type_sh_normal_map()

void register_node_type_sh_normal_map ( void  )

Variable Documentation

◆ sh_node_normal_map_in

bNodeSocketTemplate sh_node_normal_map_in[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Strength"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 10.0f},
{SOCK_RGBA, N_("Color"), 0.5f, 0.5f, 1.0f, 1.0f, 0.0f, 1.0f},
{-1, ""},
}
#define N_(msgid)
@ SOCK_FLOAT
@ SOCK_RGBA

Definition at line 24 of file node_shader_normal_map.c.

Referenced by register_node_type_sh_normal_map().

◆ sh_node_normal_map_out

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

Definition at line 30 of file node_shader_normal_map.c.

Referenced by register_node_type_sh_normal_map().