Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_math.cc
| Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | |||||
| } // namespace blender::nodes::node_shader_math_cc | } // namespace blender::nodes::node_shader_math_cc | ||||
| void register_node_type_sh_math() | void register_node_type_sh_math() | ||||
| { | { | ||||
| namespace file_ns = blender::nodes::node_shader_math_cc; | namespace file_ns = blender::nodes::node_shader_math_cc; | ||||
| static bNodeType ntype; | static bNodeType ntype; | ||||
| sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTER, 0); | sh_fn_node_type_base(&ntype, SH_NODE_MATH, "Math", NODE_CLASS_CONVERTER); | ||||
| ntype.declare = file_ns::sh_node_math_declare; | ntype.declare = file_ns::sh_node_math_declare; | ||||
| ntype.labelfunc = node_math_label; | ntype.labelfunc = node_math_label; | ||||
| node_type_gpu(&ntype, file_ns::gpu_shader_math); | node_type_gpu(&ntype, file_ns::gpu_shader_math); | ||||
| node_type_update(&ntype, node_math_update); | node_type_update(&ntype, node_math_update); | ||||
| ntype.build_multi_function = file_ns::sh_node_math_build_multi_function; | ntype.build_multi_function = file_ns::sh_node_math_build_multi_function; | ||||
| ntype.gather_link_search_ops = file_ns::sh_node_math_gather_link_searches; | ntype.gather_link_search_ops = file_ns::sh_node_math_gather_link_searches; | ||||
| nodeRegisterType(&ntype); | nodeRegisterType(&ntype); | ||||
| } | } | ||||