Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_math.cc
| Show All 25 Lines | |||||
| #include "NOD_math_functions.hh" | #include "NOD_math_functions.hh" | ||||
| /* **************** SCALAR MATH ******************** */ | /* **************** SCALAR MATH ******************** */ | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void sh_node_math_declare(NodeDeclarationBuilder &b) | static void sh_node_math_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::Float>("Value").default_value(0.5f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>("Value").default_value(0.5f).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Value", "Value_001").default_value(0.5f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>("Value", "Value_001").default_value(0.5f).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Value", "Value_002").default_value(0.5f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>("Value", "Value_002").default_value(0.5f).min(-10000.0f).max(10000.0f); | ||||
| b.add_output<decl::Float>("Value"); | b.add_output<decl::Float>("Value"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| ▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines | |||||