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

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 c80ff8a39d - Show all commits

View File

@ -926,6 +926,8 @@ static void export_hair_curves(Scene *scene,
float3 prev_co = zero_float3();
float length = 0.0f;
/* TODO: It seems a waste of time to compute the normals of the subdivided curve, but only use
* those of the control points. Maybe the API of `evaluated_normals()` should be changed. */
const int resolution = resolutions[i];
const int evaluated_offset = evaluated_offsets[i];