diff options
author | Johnny Matthews <guitargeek> | 2021-09-24 22:03:42 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-24 22:03:42 +0300 |
commit | 536f9eb82e07778565b789f7408f3ce81aa6d675 (patch) | |
tree | c851490f5a7c7b76f32f44657591641b675ecf62 /source/blender/nodes/NOD_function.h | |
parent | c87e6b23be5683e006d75a69281ecf64dc86c7d6 (diff) |
Geometry Nodes: Random Value Node
This node replaces the deprecated Attribute Randomize node, populating
a vector, float, integer or boolean field with random values. Vector,
float, and integer have min/max settings, which are also field aware.
The boolean type has a probability value for controlling what portion
of the output should be true. All four types have a field seed input
which is implicitly driven by the index, otherwise, all values would
be the same "random" value.
The Random Float node is now deprecated like other nodes, since it is
redundant with this node.
Differential Revision: https://developer.blender.org/D12603
Diffstat (limited to 'source/blender/nodes/NOD_function.h')
-rw-r--r-- | source/blender/nodes/NOD_function.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/nodes/NOD_function.h b/source/blender/nodes/NOD_function.h index b922b36686e..9aa4c04000e 100644 --- a/source/blender/nodes/NOD_function.h +++ b/source/blender/nodes/NOD_function.h @@ -20,13 +20,15 @@ extern "C" { #endif +void register_node_type_fn_legacy_random_float(void); + void register_node_type_fn_boolean_math(void); void register_node_type_fn_float_compare(void); void register_node_type_fn_float_to_int(void); void register_node_type_fn_input_special_characters(void); void register_node_type_fn_input_string(void); void register_node_type_fn_input_vector(void); -void register_node_type_fn_random_float(void); +void register_node_type_fn_random_value(void); void register_node_type_fn_string_length(void); void register_node_type_fn_string_substring(void); void register_node_type_fn_value_to_string(void); |