Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_mixRgb.c
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| tex_output(node, execdata, in, out[0], &colorfn, data); | tex_output(node, execdata, in, out[0], &colorfn, data); | ||||
| } | } | ||||
| void register_node_type_tex_mix_rgb(void) | void register_node_type_tex_mix_rgb(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR, 0); | tex_node_type_base(&ntype, TEX_NODE_MIX_RGB, "Mix", NODE_CLASS_OP_COLOR); | ||||
| node_type_socket_templates(&ntype, inputs, outputs); | node_type_socket_templates(&ntype, inputs, outputs); | ||||
| ntype.labelfunc = node_blend_label; | ntype.labelfunc = node_blend_label; | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||