Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_mixRgb.c
| Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | static int gpu_shader_mix_rgb(GPUMaterial *mat, | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| void register_node_type_sh_mix_rgb(void) | void register_node_type_sh_mix_rgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR, 0); | sh_node_type_base(&ntype, SH_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_mix_rgb_in, sh_node_mix_rgb_out); | node_type_socket_templates(&ntype, sh_node_mix_rgb_in, sh_node_mix_rgb_out); | ||||
| node_type_label(&ntype, node_blend_label); | node_type_label(&ntype, node_blend_label); | ||||
| node_type_exec(&ntype, NULL, NULL, node_shader_exec_mix_rgb); | node_type_exec(&ntype, NULL, NULL, node_shader_exec_mix_rgb); | ||||
| node_type_gpu(&ntype, gpu_shader_mix_rgb); | node_type_gpu(&ntype, gpu_shader_mix_rgb); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||