This patch adds the LERP A+(B-A)*fac to the vector math nodes.
Details
Diff Detail
- Repository
- rB Blender
Event Timeline
Nice! I don't think I want to decide whether we should have this myself, but it seems quite reasonable.
| source/blender/gpu/shaders/material/gpu_shader_material_vector_math.glsl | ||
|---|---|---|
| 158 | Looks like this should have a newline at the end. | |
| source/blender/nodes/NOD_math_functions.hh | ||
| 386 | You can use float3::interpolate | |
| source/blender/nodes/geometry/nodes/node_geo_attribute_vector_math.cc | ||
| 63 | This line looks a bit long, have you looked at https://wiki.blender.org/wiki/Tools/ClangFormat ? | |
| 97 | Use the ELEM macro here so it's more extendible if we add another operation that uses float for C | |
| source/blender/nodes/shader/nodes/node_shader_vector_math.cc | ||
| 174 | I think "Fac" is outdated, currently in the UI we try to avoid abbreviations like that. (There are still leftover places that break this rule). | |
| source/blender/nodes/shader/nodes/node_shader_vector_math.cc | ||
|---|---|---|
| 174 | @Johnny Matthews (guitargeek) I am pretty certain that @Hans Goudey (HooglyBoogly) meant that "Fac" shouldn't be abbreviated, but should be spelled out as "Factor" as seen in the geometry node on the right. The Color MixRGB node on the left is an example of a node that has yet to be updated. | |
Functionality like this will probably be added to a vector mode for the map range node rather than in vector math.
