Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_hueSatVal.c
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| return GPU_stack_link(mat, node, "hue_sat", in, out); | return GPU_stack_link(mat, node, "hue_sat", in, out); | ||||
| } | } | ||||
| void register_node_type_sh_hue_sat(void) | void register_node_type_sh_hue_sat(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_HUE_SAT, "Hue Saturation Value", NODE_CLASS_OP_COLOR, 0); | sh_node_type_base(&ntype, SH_NODE_HUE_SAT, "Hue Saturation Value", NODE_CLASS_OP_COLOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_hue_sat_in, sh_node_hue_sat_out); | node_type_socket_templates(&ntype, sh_node_hue_sat_in, sh_node_hue_sat_out); | ||||
| node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | node_type_size_preset(&ntype, NODE_SIZE_MIDDLE); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_hue_sat); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_hue_sat); | ||||
| node_type_gpu(&ntype, gpu_shader_hue_sat); | node_type_gpu(&ntype, gpu_shader_hue_sat); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||