Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-08-19 00:49:58 +0400
committerThomas Dinges <blender@dingto.org>2013-08-19 00:49:58 +0400
commit8080c10c32fd2638495891e8b8b75d4fb23c8fd8 (patch)
treec3f65049f6a3fa5bde8d689e670cb5b73a09fca0 /intern/cycles/kernel/shaders/node_subsurface_scattering.osl
parent49b0dbd3a30805d924ff4d5b219666cd8b1f7c67 (diff)
Cycles / SSS:
* OSL rendered Black with Compatible Fallof option, fixed. Note: OSL uses compatible scattering when "Compatible" or "Bicubic" is selected. I guess compatible will be removed later? If not we need to fix this properly.
Diffstat (limited to 'intern/cycles/kernel/shaders/node_subsurface_scattering.osl')
-rw-r--r--intern/cycles/kernel/shaders/node_subsurface_scattering.osl6
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 407bf8c6593..18864118172 100644
--- a/intern/cycles/kernel/shaders/node_subsurface_scattering.osl
+++ b/intern/cycles/kernel/shaders/node_subsurface_scattering.osl
@@ -25,9 +25,9 @@ shader node_subsurface_scattering(
normal Normal = N,
output closure color BSSRDF = 0)
{
- if(Falloff == "Cubic")
- BSSRDF = Color * bssrdf_cubic(N, Scale * Radius);
- else if(Falloff == "Gaussian")
+ if(Falloff == "Gaussian")
BSSRDF = Color * bssrdf_gaussian(N, Scale * Radius);
+ else /* Cubic, hardcoded to compatible closure for now */
+ BSSRDF = Color * bssrdf_cubic(N, Scale * Radius);
}