diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-06 00:16:25 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-06 00:16:25 +0300 |
commit | f117ea26246355f423fd78785a3b00a2490bd9a4 (patch) | |
tree | 7eece56e3299c2e2f90691c10f3699d1d05a93c9 /source/creator | |
parent | becc36cce5248417fe4f626dedb50804c0e0eb1d (diff) |
Geometry Nodes: Expose vertex normals as an attribute
This attribute exposes mesh vertex normals as a `vertex_normal`
attribute for use with nodes. Since the normal vector stored in
vertices is only a cache of data computable from the surrounding faces,
the attribute is read-only. A proper error message for attempting to
write this attribute is part of T85749. A write-only normal attribute
will likely come later, most likely called `corner_normal`.
The normals are recomputed before reading if they are marked dirty.
This involves const write-access to the mesh, protected by the mutex
stored in `Mesh_Runtime`. This is essential for correct behavior after
nodes like "Edge Split" or nodes that adjust the position attribute.
Ref T84297, T85880, T86206
Differential Revision: https://developer.blender.org/D10541
Diffstat (limited to 'source/creator')
0 files changed, 0 insertions, 0 deletions