Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_math.c
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | else { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| } | } | ||||
| void register_node_type_sh_math(void) | void register_node_type_sh_math(void) | ||||
| { | { | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, 0); | sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTOR, 0); | ||||
| node_type_socket_templates(&ntype, sh_node_math_in, sh_node_math_out); | node_type_socket_templates(&ntype, sh_node_math_in, sh_node_math_out); | ||||
| node_type_label(&ntype, node_math_label); | node_type_label(&ntype, node_math_label); | ||||
| node_type_gpu(&ntype, gpu_shader_math); | node_type_gpu(&ntype, gpu_shader_math); | ||||
| node_type_update(&ntype, node_math_update); | node_type_update(&ntype, node_math_update); | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||