Remove empirical scaling to match microfacet and principled hair BSDF

This commit is contained in:
Weizhen Huang 2023-01-16 16:20:00 +01:00
parent f0529cfabc
commit 9e5c1787a5
1 changed files with 0 additions and 8 deletions

View File

@ -940,14 +940,6 @@ ccl_device_noinline int svm_node_closure_bsdf(KernelGlobals kg,
bsdf->distribution_type = clamp(
distribution_type, NODE_MICROFACET_HAIR_GGX, NODE_MICROFACET_HAIR_BECKMANN);
/* Empirical equivalences compared with principled hair BSDF. */
if (bsdf->distribution_type == NODE_MICROFACET_HAIR_GGX) {
roughness *= 0.5f;
}
else { /* bsdf->distribution_type == NODE_MICROFACET_HAIR_BECKMANN*/
roughness *= 2.f / 3.f;
}
bsdf->N = N;
bsdf->roughness = roughness;
bsdf->tilt = tilt;