diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-25 19:23:19 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-25 19:23:19 +0300 |
commit | ba1e97f1c6cd0c614a13eb1b5d7050b7c301d03e (patch) | |
tree | 49fd4dc9ce0aa433a37e6a72904f7b809ccc641f /source/blender/blenkernel/BKE_node.h | |
parent | 5606942c63bf81afa16a0f148287da9421d53a48 (diff) |
Geometry Nodes: Field on Domain Node
As described in T98943, this commit adds a node that can
evaluate a field on a separate domain in a larger field context.
This is potentially useful in many cases, to avoid relying on
a separate capture attribute node, which can make it easier
to build reusable fields that don't need geometry inputs.
Internally, the node just evaluates the input field in the larger
field context and then uses the generic domain interpolation,
so the code is simple. One future optimization might be using
the input selection to only evaluate part of the input field, but
then the selection has to be interpolated as well, and that might
not always be worth it.
Differential Revision: https://developer.blender.org/D15289
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index f531d693b6c..4a84f8fc3c4 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -1497,6 +1497,7 @@ struct TexResult; #define GEO_NODE_INPUT_INSTANCE_SCALE 1160 #define GEO_NODE_VOLUME_CUBE 1161 #define GEO_NODE_POINTS 1162 +#define GEO_NODE_FIELD_ON_DOMAIN 1163 /** \} */ |