Cycles Hair: Strand Minimum Pixel Size
Code is added to restrict the pixel size of strands in cycles. It works best with ribbon primitives and a preset for these is included. It uses distance dependent expansion of the strands and then stochastic strand removal to give a fading. To prevent a slowdown for triangle mesh objects in the BVH an extra visibility flag has been added. It is also only applied for camera rays. The strand width settings are also changed, so that the particle size is not included in the width calculation. Instead there is a separate particle system parameter for width scaling.
This commit is contained in:
@@ -96,6 +96,9 @@ __device_noinline void shader_setup_from_ray(KernelGlobals *kg, ShaderData *sd,
|
||||
|
||||
#ifdef __HAIR__
|
||||
sd->segment = ~0;
|
||||
/*elements for minimum hair width using transparency bsdf*/
|
||||
/*sd->curve_transparency = 0.0f;*/
|
||||
/*sd->curve_radius = 0.0f;*/
|
||||
#endif
|
||||
|
||||
#ifdef __UV__
|
||||
|
Reference in New Issue
Block a user