13e0077c5c848b667a4b725f6e5c91129464b87a
Add a new shader specifically for node sockets rather than using the keyframe shader. Motivation: 1. Allow easier addition of new socket shapes 2. Simplify socket drawing by avoiding special handling of multi-inputs 3. Support multi-inputs for all socket types (diamond, square, etc.) The new shader is tweaked to look the same to the old ones. **Comparison** The biggest difference is that the multi socket is now more consistent with the other sockets. For single sockets there can be small size differences depending on zoom level because the old socket shader always aligned the sockets to the pixel grid. This could cause a bit of jiggling compared to the rest of the node when slowly zooming. Therefore I left it out of the new shader and it now scales strictly linear with the view. **Multi Socket Types** While there currently is no need for (.) internally, there are a few obvious use-cases for multi-input field (diamond) sockets like generalized math nodes with an arbitrary number of inputs (Add, Multiply, Minimum etc.). Co-authored-by: Jacques Lucke <jacques@blender.org> Pull Request: https://projects.blender.org/blender/blender/pulls/119243
…
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%
