Fix cycles AO issue, still was missing AO pass for black/non-diffuse objects.

This commit is contained in:
Brecht Van Lommel
2012-11-23 13:41:25 +00:00
parent c8767b514d
commit c25cfd3044

View File

@@ -619,6 +619,9 @@ __device float3 shader_bsdf_ao(KernelGlobals *kg, ShaderData *sd, float ao_facto
}
}
if(is_zero(*N))
*N = sd->N;
else
*N = normalize(*N);
return eval;