7ff752b7891a4c96c128b69eeff50f2b7e29986b
Change the implementation of the raycast and sample nearest surface node to split separate loops into separate multi-functions. This clarifies the task of each function, gives more information to the field evaluator, and gives more opportunity for memory reuse. Sampling mesh attributes with triangle barycentric weights is now implemented in a single place. Two other new multi-functions handle conversion of sampled positions into barycentric weights. Normalizing the ray directions for the raycast node is split out too, so it can be skipped in some cases in the future. The mesh attribute interpolator helper class is also removed, since it didn't give much benefit over a more functional approach. I didn't notice a performance improvement from this change. Pull Request: https://projects.blender.org/blender/blender/pulls/107563
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
