diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-29 13:24:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-05-29 21:30:16 +0300 |
commit | 9bd2820aaf599bb25a19cdb6b548957b6686eadc (patch) | |
tree | a9fda38ac97604ce5be6091de99ea1514d4b6943 /intern/cycles/kernel/shaders/node_rgb_ramp.osl | |
parent | eac7ed8d047457564033f1547fea9a912ff0d9b7 (diff) |
Code refactor: add separate RGB to BW node and rename some sockets.
Diffstat (limited to 'intern/cycles/kernel/shaders/node_rgb_ramp.osl')
-rw-r--r-- | intern/cycles/kernel/shaders/node_rgb_ramp.osl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/shaders/node_rgb_ramp.osl b/intern/cycles/kernel/shaders/node_rgb_ramp.osl index 2ab6b6778b7..c0ae74d6b33 100644 --- a/intern/cycles/kernel/shaders/node_rgb_ramp.osl +++ b/intern/cycles/kernel/shaders/node_rgb_ramp.osl @@ -20,7 +20,7 @@ shader node_rgb_ramp( color ramp_color[] = {0.0}, float ramp_alpha[] = {0.0}, - int ramp_interpolate = 1, + int interpolate = 1, float Fac = 0.0, output color Color = 0.0, @@ -38,7 +38,7 @@ shader node_rgb_ramp( Color = ramp_color[i]; Alpha = ramp_alpha[i]; - if (ramp_interpolate && t > 0.0) { + if (interpolate && t > 0.0) { Color = (1.0 - t) * Color + t * ramp_color[i + 1]; Alpha = (1.0 - t) * Alpha + t * ramp_alpha[i + 1]; } |