Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_decompose.c
| Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | static void exec(void *data, | ||||
| tex_output(node, execdata, in, out[2], &valuefn_b, data); | tex_output(node, execdata, in, out[2], &valuefn_b, data); | ||||
| tex_output(node, execdata, in, out[3], &valuefn_a, data); | tex_output(node, execdata, in, out[3], &valuefn_a, data); | ||||
| } | } | ||||
| void register_node_type_tex_decompose(void) | void register_node_type_tex_decompose(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_DECOMPOSE, "Separate RGBA", NODE_CLASS_OP_COLOR, 0); | tex_node_type_base(&ntype, TEX_NODE_DECOMPOSE, "Separate RGBA", NODE_CLASS_OP_COLOR); | ||||
| node_type_socket_templates(&ntype, inputs, outputs); | node_type_socket_templates(&ntype, inputs, outputs); | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||