Unity-Technologies / com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
Other
710 stars 96 forks source link

Density Map not fully respected #63

Open qlee01 opened 1 year ago

qlee01 commented 1 year ago

Hey, when using a density map for procedural hair generation, strands appear also in areas where the texture is completely black. In principial, the density works, but there seems to be no way (?) to completely omit areas of the mesh using the density map (only way I found was using the same texture on "Mapped Parameters", making the strands invisible due to zero length / diameter).

fuglsang commented 3 months ago

Hi. I remember thinking this might eventually be the case when I originally added this feature. :) It is true that zero does not mean void -- I will try to think of a solution next time I do a pass over the procedural placement section. (It's apparent to me that some other tweaks and additions would be useful there as well, such as supporting tangent space mapped direction, and an option to supply a vector field from which to sample the flow of strands.)