Blender Git Loki

Git Commits -> Revision 53bf04f

Revision 53bf04f by Hans Goudey (master)
February 17, 2021, 14:30 (GMT)
Geometry Nodes: Expose material index attribute

The `material_index` attribute can adjust which material in the list
will be applied to each face of the mesh. There are two new things
about this attribute that haven't been exposed by the attribute API yet.
Each comes with limitations:
1. Integer data type: Most attribute nodes are currently written to use
float data types. This means that they can't write to this attribute
because they can't change the type of a built-in attribute.
2. Polygon domain: This is our first attribute using the polygon domain,
meaning until some of the interpolations are implemented, some
operations may not work as expected.

Currently the two nodes that work with this attribute are Attribute Fill
and Attribute Randomize.

Differential Revision: https://developer.blender.org/D10444

Commit Details:

Full Hash: 53bf04f2844b64cd9f79bedd047eac9690f872e3
Parent Commit: 37de612
Lines Changed: +43, -5

3 Modified Paths:

/source/blender/blenkernel/intern/attribute_access.cc (+37, -1) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+3, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021