diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-08-14 18:34:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-08-14 18:34:58 +0300 |
commit | 4b9e05b42898073c65d97e20295a773f6ce7e78b (patch) | |
tree | 620dc619f1a65a8c89127c108d2d99c436becbec /intern/cycles/kernel/shaders/node_map_range.osl | |
parent | 8cbe9f1b9ad8ba63eadbd15270338c24005e0e9c (diff) |
Cleanup: clang-format, sort structs & cmake files
Diffstat (limited to 'intern/cycles/kernel/shaders/node_map_range.osl')
-rw-r--r-- | intern/cycles/kernel/shaders/node_map_range.osl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/cycles/kernel/shaders/node_map_range.osl b/intern/cycles/kernel/shaders/node_map_range.osl index 417d2ae50a8..8a28edf5f35 100644 --- a/intern/cycles/kernel/shaders/node_map_range.osl +++ b/intern/cycles/kernel/shaders/node_map_range.osl @@ -16,8 +16,12 @@ #include "stdosl.h" -shader node_map_range(float Value = 1.0, float FromMin = 0.0, float FromMax = 1.0, - float ToMin = 0.0, float ToMax = 1.0, output float Result = 0.0) +shader node_map_range(float Value = 1.0, + float FromMin = 0.0, + float FromMax = 1.0, + float ToMin = 0.0, + float ToMax = 1.0, + output float Result = 0.0) { if (FromMax != FromMin) { Result = ToMin + ((Value - FromMin) / (FromMax - FromMin)) * (ToMax - ToMin); |