Cycles: small code cleanup + fix SSS closure mixed with other closures doing

a bit too much work.
This commit is contained in:
Brecht Van Lommel
2013-04-02 16:37:28 +00:00
parent be1a5a2328
commit 5c74e6dae2
6 changed files with 10 additions and 40 deletions

View File

@@ -143,6 +143,7 @@ __device void subsurface_scatter_setup_diffuse_bsdf(ShaderData *sd, float3 weigh
sc->data0 = 0.0f;
sc->data1 = 0.0f;
sc->N = sd->N;
sd->flag &= ~SD_CLOSURE_FLAGS;
sd->flag |= bsdf_diffuse_setup(sc);
sd->randb_closure = 0.0f;