Page MenuHome

Geometry Nodes: add Mix Attributes node
ClosedPublic

Authored by Jacques Lucke (JacquesLucke) on Dec 3 2020, 6:06 PM.

Details

Diff Detail

Repository
rB Blender
Branch
temp-geometry-nodes-mix-attributes (branched from master)
Build Status
Buildable 11548
Build 11548: arc lint + arc unit

Event Timeline

Jacques Lucke (JacquesLucke) requested review of this revision.Dec 3 2020, 6:06 PM
Jacques Lucke (JacquesLucke) created this revision.
Jacques Lucke (JacquesLucke) edited the summary of this revision. (Show Details)
  • Geometry Nodes: use correct category for Mix Attributes node
  • rename node to Attribute Mix
  • support different input types for A and B

I tested the patch and from a user stand point it seems all good to me!

This revision is now accepted and ready to land.Dec 10 2020, 2:21 PM

Looks good to me!

source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
88 ↗(On Diff #31777)

I guess this just uses the alpha from a then? That's a bit odd but I see this function used in similar ways elsewhere, so it's probably fine.

138 ↗(On Diff #31777)

This is in a lot of nodes at this point, we should probably have some helper function like in D9819 but for attribute domains instead. No use cases for other domains yet though, so no need for it yet I guess.

source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc
88 ↗(On Diff #31777)

Yeah, seems so, good point though.

138 ↗(On Diff #31777)

Yes, this can be added when we work more with multiple domains.