Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_sepcombHSV.c
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "separate_hsv", in, out); | return GPU_stack_link(mat, node, "separate_hsv", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_sephsv(void) | void register_node_type_sh_sephsv(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_SEPHSV, "Separate HSV", NODE_CLASS_CONVERTOR, 0); | sh_node_type_base(&ntype, SH_NODE_SEPHSV, "Separate HSV", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_sephsv_in, sh_node_sephsv_out); | node_type_socket_templates(&ntype, sh_node_sephsv_in, sh_node_sephsv_out); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_sephsv); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_sephsv); | ||||
| node_type_gpu(&ntype, gpu_shader_sephsv); | node_type_gpu(&ntype, gpu_shader_sephsv); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||
| /* **************** COMBINE HSV ******************** */ | /* **************** COMBINE HSV ******************** */ | ||||
| Show All 31 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "combine_hsv", in, out); | return GPU_stack_link(mat, node, "combine_hsv", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_combhsv(void) | void register_node_type_sh_combhsv(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_COMBHSV, "Combine HSV", NODE_CLASS_CONVERTOR, 0); | sh_node_type_base(&ntype, SH_NODE_COMBHSV, "Combine HSV", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_combhsv_in, sh_node_combhsv_out); | node_type_socket_templates(&ntype, sh_node_combhsv_in, sh_node_combhsv_out); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_combhsv); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_combhsv); | ||||
| node_type_gpu(&ntype, gpu_shader_combhsv); | node_type_gpu(&ntype, gpu_shader_combhsv); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||