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

Go to the source code of this file.

Functions

static int node_shader_gpu_layer_weight (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
static void node_shader_exec_layer_weight (void *UNUSED(data), int UNUSED(thread), bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), bNodeStack **UNUSED(in), bNodeStack **UNUSED(out))
 
void register_node_type_sh_layer_weight (void)
 

Variables

static bNodeSocketTemplate sh_node_layer_weight_in []
 
static bNodeSocketTemplate sh_node_layer_weight_out []
 

Function Documentation

◆ node_shader_exec_layer_weight()

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

Definition at line 53 of file node_shader_layer_weight.c.

Referenced by register_node_type_sh_layer_weight().

◆ node_shader_gpu_layer_weight()

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

◆ register_node_type_sh_layer_weight()

void register_node_type_sh_layer_weight ( void  )

Variable Documentation

◆ sh_node_layer_weight_in

bNodeSocketTemplate sh_node_layer_weight_in[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Blend"), 0.5f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_VECTOR, N_("Normal"), 0.0f, 0.0f, 0.0f, 1.0f, -1.0f, 1.0f, PROP_NONE, SOCK_HIDE_VALUE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_HIDE_VALUE
@ SOCK_VECTOR
@ SOCK_FLOAT
@ PROP_NONE
Definition: RNA_types.h:113

Definition at line 24 of file node_shader_layer_weight.c.

Referenced by register_node_type_sh_layer_weight().

◆ sh_node_layer_weight_out

bNodeSocketTemplate sh_node_layer_weight_out[]
static
Initial value:
= {
{SOCK_FLOAT, N_("Fresnel"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Facing"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{-1, ""},
}

Definition at line 30 of file node_shader_layer_weight.c.

Referenced by register_node_type_sh_layer_weight().