Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.c
| Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "separate_xyz", in, out); | return GPU_stack_link(mat, node, "separate_xyz", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_sepxyz(void) | void register_node_type_sh_sepxyz(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_SEPXYZ, "Separate XYZ", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_SEPXYZ, "Separate XYZ", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_sepxyz_in, sh_node_sepxyz_out); | node_type_socket_templates(&ntype, sh_node_sepxyz_in, sh_node_sepxyz_out); | ||||
| node_type_gpu(&ntype, gpu_shader_sepxyz); | node_type_gpu(&ntype, gpu_shader_sepxyz); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||
| /* **************** COMBINE XYZ ******************** */ | /* **************** COMBINE XYZ ******************** */ | ||||
| static bNodeSocketTemplate sh_node_combxyz_in[] = { | static bNodeSocketTemplate sh_node_combxyz_in[] = { | ||||
| Show All 15 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "combine_xyz", in, out); | return GPU_stack_link(mat, node, "combine_xyz", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_combxyz(void) | void register_node_type_sh_combxyz(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_COMBXYZ, "Combine XYZ", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_COMBXYZ, "Combine XYZ", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_combxyz_in, sh_node_combxyz_out); | node_type_socket_templates(&ntype, sh_node_combxyz_in, sh_node_combxyz_out); | ||||
| node_type_gpu(&ntype, gpu_shader_combxyz); | node_type_gpu(&ntype, gpu_shader_combxyz); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||