Alexander Gavrilov
f8cc01595d
Drivers: add lerp and clamp functions to namespace.
...
Implementation of lerp without a function requires repeating one of
the arguments, which is not ideal. To avoid that, add a new function
to the driver namespace. In addition, provide a function for clamping
between 0 and 1 to support easy clamped lerp, and a smoothstep function
from GLSL that is somewhat related.
The function implementations are added to a new bl_math module.
As an aside, add the round function and two-argument log to the
pylike expression subset.
Differential Revision: https://developer.blender.org/D8205
2020-07-21 19:01:50 +03:00
..
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-04 16:45:07 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-06-02 17:31:45 +02:00
2019-02-18 08:22:12 +11:00
2019-04-17 06:21:24 +02:00
2019-02-18 08:22:12 +11:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-02-18 08:22:12 +11:00
2020-03-26 15:32:40 +11:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2020-01-31 11:29:29 +01:00
2020-07-13 16:45:55 +02:00
2019-04-17 06:21:24 +02:00
2020-04-03 19:27:46 +02:00
2020-07-13 11:27:09 +02:00
2020-07-21 19:01:50 +03:00
2019-04-17 06:21:24 +02:00
2020-04-03 18:25:52 +02:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2020-07-21 19:01:50 +03:00
2020-02-20 15:40:05 +11:00
2019-04-17 06:21:24 +02:00
2020-05-29 15:55:25 +10:00
2020-06-18 15:49:10 +10:00
2020-05-29 15:55:25 +10:00
2020-06-27 13:48:18 +10:00
2019-04-17 06:21:24 +02:00
2020-04-03 18:25:52 +02:00
2019-02-18 08:22:12 +11:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2019-04-17 06:21:24 +02:00
2019-04-17 06:21:24 +02:00
2020-07-10 15:50:21 +02:00
2019-04-17 06:21:24 +02:00
2020-07-20 11:51:09 +02:00
2019-04-17 06:21:24 +02:00
2020-03-25 17:58:58 +11:00
2020-06-04 18:41:16 +10:00
2019-04-17 06:21:24 +02:00
2020-05-01 13:08:22 +02:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-07-10 16:04:09 +10:00
2020-05-29 15:55:25 +10:00
2020-05-29 15:55:25 +10:00
2020-05-13 15:54:09 +10:00
2020-07-19 17:37:02 +10:00
2020-05-13 15:57:29 +10:00
2020-07-19 17:37:02 +10:00
2019-04-17 06:21:24 +02:00
2020-03-19 09:33:58 +01:00
2019-02-18 08:22:12 +11:00
2020-03-19 09:33:58 +01:00
2019-04-17 06:21:24 +02:00
2020-05-29 15:55:25 +10:00
2019-04-17 06:21:24 +02:00
2020-05-13 15:54:09 +10:00
2019-05-01 11:13:14 +10:00