diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-11 20:42:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-11 20:42:16 +0300 |
commit | 5bd822dc46f60da4b7de125f2d559fa16d781787 (patch) | |
tree | e7fcbebb32f004ee3dcc76a3a042723ad9b602ea /source/blender/editors/space_node/drawnode.c | |
parent | 2a8b987e9e4dacd788ce955966d28c04ed91caf3 (diff) |
Geometry Nodes Point Distribution: Align points to face normals
This patch makes the point distribute node write to the "rotation"
attribute with the normal of each face at each distributed point.
The "normal" attribute is also created with the triangle normal
at each point.
The conversion from the triangle normal to an Euler rotation is somewhat
arbitrary, since we only have one direction vector. For a more flexible
rotation for each point, the "Align Rotation to Vector" node can be used
in the future.
Differential Revision: https://developer.blender.org/D9965
Diffstat (limited to 'source/blender/editors/space_node/drawnode.c')
0 files changed, 0 insertions, 0 deletions