Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombRGB.c
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "separate_rgb", in, out); | return GPU_stack_link(mat, node, "separate_rgb", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_seprgb(void) | void register_node_type_sh_seprgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_SEPRGB, "Separate RGB", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_SEPRGB, "Separate RGB", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_seprgb_in, sh_node_seprgb_out); | node_type_socket_templates(&ntype, sh_node_seprgb_in, sh_node_seprgb_out); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_seprgb); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_seprgb); | ||||
| node_type_gpu(&ntype, gpu_shader_seprgb); | node_type_gpu(&ntype, gpu_shader_seprgb); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||
| /* **************** COMBINE RGB ******************** */ | /* **************** COMBINE RGB ******************** */ | ||||
| Show All 33 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "combine_rgb", in, out); | return GPU_stack_link(mat, node, "combine_rgb", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_combrgb(void) | void register_node_type_sh_combrgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_COMBRGB, "Combine RGB", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_COMBRGB, "Combine RGB", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_combrgb_in, sh_node_combrgb_out); | node_type_socket_templates(&ntype, sh_node_combrgb_in, sh_node_combrgb_out); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_combrgb); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_combrgb); | ||||
| node_type_gpu(&ntype, gpu_shader_combrgb); | node_type_gpu(&ntype, gpu_shader_combrgb); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||