Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_output_world.c
| Show All 29 Lines | |||||
| /* **************** OUTPUT ******************** */ | /* **************** OUTPUT ******************** */ | ||||
| static bNodeSocketTemplate sh_node_output_world_in[] = { | static bNodeSocketTemplate sh_node_output_world_in[] = { | ||||
| { SOCK_SHADER, 1, N_("Surface"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | { SOCK_SHADER, 1, N_("Surface"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | ||||
| { SOCK_SHADER, 1, N_("Volume"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | { SOCK_SHADER, 1, N_("Volume"), 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f}, | ||||
| { -1, 0, "" } | { -1, 0, "" } | ||||
| }; | }; | ||||
| static int node_shader_gpu_output_world(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | static int node_shader_gpu_output_world(GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) | ||||
| { | { | ||||
| GPUNodeLink *outlink; | GPUNodeLink *outlink; | ||||
| GPU_stack_link(mat, "node_output_world", in, out, &outlink); | GPU_stack_link(mat, node, "node_output_world", 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_world(void) | void register_node_type_sh_output_world(void) | ||||
| { | { | ||||
| Show All 14 Lines | |||||