Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/function/nodes/node_fn_random_float.cc
| Show All 16 Lines | |||||
| #include "node_function_util.hh" | #include "node_function_util.hh" | ||||
| #include "BLI_hash.h" | #include "BLI_hash.h" | ||||
| namespace blender::nodes { | namespace blender::nodes { | ||||
| static void fn_node_random_float_declare(NodeDeclarationBuilder &b) | static void fn_node_random_float_declare(NodeDeclarationBuilder &b) | ||||
| { | { | ||||
| b.is_function_node(); | |||||
| b.add_input<decl::Float>("Min").min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>("Min").min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Float>("Max").default_value(1.0f).min(-10000.0f).max(10000.0f); | b.add_input<decl::Float>("Max").default_value(1.0f).min(-10000.0f).max(10000.0f); | ||||
| b.add_input<decl::Int>("Seed").min(-10000).max(10000); | b.add_input<decl::Int>("Seed").min(-10000).max(10000); | ||||
| b.add_output<decl::Float>("Value"); | b.add_output<decl::Float>("Value"); | ||||
| }; | }; | ||||
| } // namespace blender::nodes | } // namespace blender::nodes | ||||
| ▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines | |||||