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

Go to the source code of this file.

Functions

static void node_shader_init_attribute (bNodeTree *UNUSED(ntree), bNode *node)
 
static int node_shader_gpu_attribute (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_attribute (void)
 

Variables

static bNodeSocketTemplate sh_node_attribute_out []
 

Function Documentation

◆ node_shader_gpu_attribute()

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

◆ node_shader_init_attribute()

static void node_shader_init_attribute ( bNodeTree UNUSEDntree,
bNode node 
)
static

Definition at line 32 of file node_shader_attribute.c.

References MEM_callocN, and node.

Referenced by register_node_type_sh_attribute().

◆ register_node_type_sh_attribute()

void register_node_type_sh_attribute ( void  )

Variable Documentation

◆ sh_node_attribute_out

bNodeSocketTemplate sh_node_attribute_out[]
static
Initial value:
= {
{SOCK_RGBA, N_("Color")},
{SOCK_VECTOR, N_("Vector"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f},
{SOCK_FLOAT, N_("Fac"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX, PROP_FACTOR},
{SOCK_FLOAT, N_("Alpha"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX, PROP_FACTOR},
{-1, ""},
}
#define N_(msgid)
@ SOCK_VECTOR
@ SOCK_FLOAT
@ SOCK_RGBA
@ PROP_FACTOR
Definition: RNA_types.h:131

Definition at line 24 of file node_shader_attribute.c.

Referenced by node_shader_gpu_attribute(), and register_node_type_sh_attribute().