...
optional_parameters
accepts "float vector eccentricity" for now. It specifies the direction and the eccentricity of the cross section of one hair. This parameter should be the same for the entire hair strand for realistic results. An example code to generate such a vector would look like this:
| Code Block |
|---|
vector eccentricity = eccentricity_scale * rotate( normalize(dPdu), random_hair * 2 * PI, 0, point(dPdv) ); |
Accepted sub-components call the hair_component closure with a parameter specifying the lobe to sample:
...