diff options
author | Jacques Lucke <jacques@blender.org> | 2020-12-11 14:00:48 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-11 14:00:48 +0300 |
commit | d72ec16e70721408c875040325c984941687b4a2 (patch) | |
tree | 9227d298f9ac7b2eb96d1e0b5fed8ba30cb50cf0 /source/blender/makesdna | |
parent | 150a1d158a79582802bb17dacdd790f0f88aeedb (diff) |
Geometry Nodes: add Attribute Mix node
This node can be used to mix two attributes in various ways.
The blend modes are the same as in the MixRGB shader node.
Differential Revision: https://developer.blender.org/D9737
Ref T82374.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 13f8b11352a..b8aeaa2bd89 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -1059,6 +1059,16 @@ typedef struct NodeDenoise { char _pad[7]; } NodeDenoise; +typedef struct NodeAttributeMix { + /* e.g. MA_RAMP_BLEND. */ + uint8_t blend_type; + + /* GeometryNodeAttributeInputMode */ + uint8_t input_type_factor; + uint8_t input_type_a; + uint8_t input_type_b; +} NodeAttributeMix; + /* script node mode */ #define NODE_SCRIPT_INTERNAL 0 #define NODE_SCRIPT_EXTERNAL 1 |