Blender Git Commit Log

Git Commits -> Revision 0406eb1

Revision 0406eb1 by Charlie Jolly (master)
December 7, 2019, 12:33 (GMT)
Maths Node: Additional functions

When creating shaders and using maths functions it is expected that Blender should match functions in other DCC applications, game engines and shading languages such as GLSL and OSL.

This patch adds missing functions to the Blender maths node.

Ideally, it would be nice to have these functions available to vectors too but that is not part of this patch.

This patch adds the following functions trunc, snap, wrap, compare, pingpong, sign, radians, degrees, cosh, sinh, tanh, exp, smoothmin and inversesqrt.

Sign function is based on GLSL and OSL functions and returns zero when x == 0.

Differential Revision:

Commit Details:

Full Hash: 0406eb110332a863811d7fb6228f9a7ca514e022
Parent Commit: 6a78ace
Lines Changed: +1044, -37

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020