Cycles: new Microfacet-based Hair BSDF with elliptical cross-section support #105600

Merged
Weizhen Huang merged 114 commits from weizhen/blender:microfacet_hair into main 2023-08-18 12:46:20 +02:00
Showing only changes of commit 028f09ccf5 - Show all commits

View File

@ -565,7 +565,7 @@ ccl_device float3 bsdf_microfacet_hair_eval_tt_trt(KernelGlobals kg,
}
}
return (S_tt + S_trt) / 3.0f * res * sqr(inv_eta) * projected_radius(e2, sinf(phi_i));
return (S_tt + S_trt) * res * sqr(inv_eta) / (3.0f * projected_radius(e2, sinf(phi_i)));
}
template<MicrofacetType m_type>