Cycles / BSSRDF:
authorThomas Dinges <blender@dingto.org>
Thu, 16 May 2013 18:39:45 +0000 (18:39 +0000)
committerThomas Dinges <blender@dingto.org>
Thu, 16 May 2013 18:39:45 +0000 (18:39 +0000)
* Avoid one max() call for the bssrdf radius, the if condition already checks for values < BSSRDF_MIN_RADIUS.

intern/cycles/kernel/closure/bssrdf.h

index 8916374cb1c893f694750a6fc742165359c54836..844e0433bae024d7adbd95b7916065df8f899ff3 100644 (file)
@@ -30,8 +30,7 @@ __device int bssrdf_setup(ShaderClosure *sc)
                return bsdf_diffuse_setup(sc);
        }
        else {
-               /* radius + IOR params */
-               sc->data0 = max(sc->data0, 0.0f);
+               /* IOR param */
                sc->data1 = max(sc->data1, 1.0f);
                sc->type = CLOSURE_BSSRDF_ID;