Geometry Nodes: Add Attribute Map Range Node

This commit adds a node with a "Map Range" operation for attributes
just like the non-attribute version of the node. However, unlike the
regular version of the node, it also supports operations on vectors.

Differential Revision: https://developer.blender.org/D10344
This commit is contained in:
Victor-Louis De Gusseme
2021-03-25 23:29:33 -04:00
committed by Hans Goudey
parent e18091650b
commit dda02a448a
9 changed files with 462 additions and 0 deletions

View File

@@ -1119,6 +1119,14 @@ typedef struct NodeAttributeCompare {
char _pad[5];
} NodeAttributeCompare;
typedef struct NodeAttributeMapRange {
/* GeometryNodeAttributeDataType */
uint8_t data_type;
/* NodeMapRangeType. */
uint8_t interpolation_type;
} NodeAttributeMapRange;
typedef struct NodeAttributeMath {
/* NodeMathOperation. */
uint8_t operation;