Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output_eevee_material.c
| Show All 30 Lines | |||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| static bNodeSocketTemplate sh_node_output_eevee_material_in[] = { | static bNodeSocketTemplate sh_node_output_eevee_material_in[] = { | ||||
| { SOCK_SHADER, 1, N_("Surface")}, | { SOCK_SHADER, 1, N_("Surface")}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static int node_shader_gpu_output_eevee_material(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | static int node_shader_gpu_output_eevee_material(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | ||||
| { | { | ||||
| GPUNodeLink *outlink; | GPUNodeLink *outlink; | ||||
| GPU_stack_link(mat, "node_output_eevee_material", in, out, &outlink); | GPU_stack_link(mat, node, "node_output_eevee_material", in, out, &outlink); | ||||
| GPU_material_output_link(mat, outlink); | GPU_material_output_link(mat, outlink); | ||||
| return true; | return true; | ||||
| } | } | ||||
| /* node type definition */ | /* node type definition */ | ||||
| void register_node_type_sh_output_eevee_material(void) | void register_node_type_sh_output_eevee_material(void) | ||||
| Show All 15 Lines | |||||