Geometry Nodes: new Integer Math node

Provide building block support for integer operations.

Manipulation of integer based data should not be limited to using float math nodes.
Using float math comes with accuracy issues for larger integers and requires unnecessary
type conversions.

The node also adds some integer specific operations like GCM and LCD.

Pull Request: https://projects.blender.org/blender/blender/pulls/110735
This commit is contained in:
Charlie Jolly
2024-09-23 15:01:31 +02:00
committed by Jacques Lucke
parent 801a73887a
commit bf04513dec
10 changed files with 326 additions and 2 deletions

View File

@@ -670,6 +670,7 @@ class NODE_MT_category_GEO_UTILITIES_MATH(Menu):
def draw(self, _context):
layout = self.layout
node_add_menu.add_node_type(layout, "FunctionNodeBooleanMath")
node_add_menu.add_node_type(layout, "FunctionNodeIntegerMath")
node_add_menu.add_node_type(layout, "ShaderNodeClamp")
node_add_menu.add_node_type(layout, "FunctionNodeCompare")
node_add_menu.add_node_type(layout, "ShaderNodeFloatCurve")