diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-07 13:31:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-07 13:32:46 +0300 |
commit | 5adfdd965a3a9e7f52fa282a892a123f8ed66c5a (patch) | |
tree | 95726ab86b1446b3359331ece2666940f7b25788 | |
parent | 9fe977dbf00bc123e7af3d1a6370d996c33bef25 (diff) |
Fix T47681: Bump node doesn't work with SSS shader when using OSL
-rw-r--r-- | intern/cycles/kernel/shaders/node_subsurface_scattering.osl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/kernel/shaders/node_subsurface_scattering.osl b/intern/cycles/kernel/shaders/node_subsurface_scattering.osl index 0a9a98afd33..a67333c5d4e 100644 --- a/intern/cycles/kernel/shaders/node_subsurface_scattering.osl +++ b/intern/cycles/kernel/shaders/node_subsurface_scattering.osl @@ -27,10 +27,10 @@ shader node_subsurface_scattering( output closure color BSSRDF = 0) { if (Falloff == "Gaussian") - BSSRDF = Color * bssrdf_gaussian(N, Scale * Radius, TextureBlur); + BSSRDF = Color * bssrdf_gaussian(Normal, Scale * Radius, TextureBlur); else if (Falloff == "Cubic") - BSSRDF = Color * bssrdf_cubic(N, Scale * Radius, TextureBlur, Sharpness); + BSSRDF = Color * bssrdf_cubic(Normal, Scale * Radius, TextureBlur, Sharpness); else - BSSRDF = Color * bssrdf_burley(N, Scale * Radius, TextureBlur, Color); + BSSRDF = Color * bssrdf_burley(Normal, Scale * Radius, TextureBlur, Color); } |