diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-15 22:08:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-15 22:09:08 +0300 |
commit | 76f386a37a9cf14ac729be048230f81a0a397fc8 (patch) | |
tree | 9363d859e4de44a55d3a7c3caca0b3a8321d4b92 /source/blender/nodes/NOD_geometry.h | |
parent | 47a72ac4fdf777f2177037df3111a5cba2697bae (diff) |
Geometry Nodes: Fields transfer attribute node
This commit adds an updated version of the old attribute transfer node.
It works like a function node, so it works in the context of a
geometry, with a simple data output.
The "Nearest" mode finds the nearest element of the specified domain on
the target geometry and copies the value directly from the target input.
The "Nearest Face Interpolated" finds the nearest point on anywhere on
the surface of the target mesh and linearly interpolates the value on
the target from the face's corners.
The node also has a new "Index" mode, which can pick data from specific
indices on the target geometry. The implicit default is to do a simple
copy from the target geometry, but any indices could be used. It is also
possible to use a single value for the index to to retrieve a single
value from an attribute at a certain index.
Differential Revision: https://developer.blender.org/D12785
Diffstat (limited to 'source/blender/nodes/NOD_geometry.h')
-rw-r--r-- | source/blender/nodes/NOD_geometry.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/NOD_geometry.h b/source/blender/nodes/NOD_geometry.h index 3b78912fbaa..d3cb9beef26 100644 --- a/source/blender/nodes/NOD_geometry.h +++ b/source/blender/nodes/NOD_geometry.h @@ -29,6 +29,7 @@ void register_node_tree_type_geo(void); void register_node_type_geo_group(void); void register_node_type_geo_custom_group(bNodeType *ntype); +void register_node_type_geo_legacy_attribute_transfer(void); void register_node_type_geo_legacy_curve_set_handles(void); void register_node_type_geo_legacy_attribute_proximity(void); void register_node_type_geo_legacy_attribute_randomize(void); @@ -58,7 +59,6 @@ void register_node_type_geo_attribute_mix(void); void register_node_type_geo_attribute_remove(void); void register_node_type_geo_attribute_separate_xyz(void); void register_node_type_geo_attribute_statistic(void); -void register_node_type_geo_attribute_transfer(void); void register_node_type_geo_attribute_vector_math(void); void register_node_type_geo_attribute_vector_rotate(void); void register_node_type_geo_boolean(void); @@ -151,6 +151,7 @@ void register_node_type_geo_string_join(void); void register_node_type_geo_string_to_curves(void); void register_node_type_geo_subdivision_surface(void); void register_node_type_geo_switch(void); +void register_node_type_geo_transfer_attribute(void); void register_node_type_geo_transform(void); void register_node_type_geo_translate_instances(void); void register_node_type_geo_triangulate(void); |