Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/texture/nodes/node_texture_math.c
| Show First 20 Lines • Show All 329 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| tex_output(node, execdata, in, out[0], &valuefn, data); | tex_output(node, execdata, in, out[0], &valuefn, data); | ||||
| } | } | ||||
| void register_node_type_tex_math(void) | void register_node_type_tex_math(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| tex_node_type_base(&ntype, TEX_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0); | tex_node_type_base(&ntype, TEX_NODE_MATH, "Math", NODE_CLASS_CONVERTER); | ||||
| node_type_socket_templates(&ntype, inputs, outputs); | node_type_socket_templates(&ntype, inputs, outputs); | ||||
| ntype.labelfunc = node_math_label; | ntype.labelfunc = node_math_label; | ||||
| node_type_exec(&ntype, NULL, NULL, exec); | node_type_exec(&ntype, NULL, NULL, exec); | ||||
| node_type_update(&ntype, node_math_update); | node_type_update(&ntype, node_math_update); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||