diff options
author | Charlie Jolly <charlie> | 2019-12-06 02:02:05 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2019-12-07 15:33:07 +0300 |
commit | 0406eb110332a863811d7fb6228f9a7ca514e022 (patch) | |
tree | 9809062966699e31c785ae0dc97ccb6e9f6c60f7 /source/blender/makesrna/RNA_enum_types.h | |
parent | 6a78ace569ec7c0e076e5af34d9496ce3363b81e (diff) |
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: https://developer.blender.org/D5957
Diffstat (limited to 'source/blender/makesrna/RNA_enum_types.h')
0 files changed, 0 insertions, 0 deletions