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

Go to the source code of this file.

Functions

static int node_shader_gpu_emission (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
 
void register_node_type_sh_emission (void)
 

Variables

static bNodeSocketTemplate sh_node_emission_in []
 
static bNodeSocketTemplate sh_node_emission_out []
 

Function Documentation

◆ node_shader_gpu_emission()

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

Definition at line 35 of file node_shader_emission.c.

References GPU_builtin(), GPU_stack_link(), GPU_VIEW_NORMAL, and node.

Referenced by register_node_type_sh_emission().

◆ register_node_type_sh_emission()

void register_node_type_sh_emission ( void  )

Variable Documentation

◆ sh_node_emission_in

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

Definition at line 24 of file node_shader_emission.c.

Referenced by register_node_type_sh_emission().

◆ sh_node_emission_out

bNodeSocketTemplate sh_node_emission_out[]
static
Initial value:
= {
{SOCK_SHADER, N_("Emission")},
{-1, ""},
}
@ SOCK_SHADER

Definition at line 30 of file node_shader_emission.c.

Referenced by register_node_type_sh_emission().