mirror of
https://github.com/blender/blender
synced 2026-10-25 03:07:01 +03:00
This adds the Integer Math node to shader nodes. It's the same node that can already be used in Geometry Nodes and the Compositor. While creating the regression test, I noticed that the integer math implementation was a bit broken: * The integer modulo (`%`) operator on the GPU is undefined for negative divisors (the added regression test showed that the behavior is not consistent across platforms). * Use integer power function instead of using float implementation with casts. The MaterialX implementation is omitted for now. I didn't look into it in detail yet but for the Boolean Math node (#162798) it seemed like some more work is needed there to support this type. Pull Request: https://projects.blender.org/blender/blender/pulls/163805
3 lines
132 B
Text
3 lines
132 B
Text
version https://git-lfs.github.com/spec/v1
|
|
oid sha256:0611d15d780dc6f429d534de5c02d53222108cf80f28e8f32878c6f0bca79174
|
|
size 1274148
|