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

There is no way to get the initial hair vertex position, or the strand length #58

Open methusalah opened 1 year ago

methusalah commented 1 year ago

I wish to make a color gradient on the hair, say having the root red and the tip blue. The StrandUV.y in the HairVertex node helps, but I have two issues:

The solution I found was to have different materials on the different groups and calibrate the gradient length and/or spread for each group, with non ideal results.

A perfect solution would be to have access to the initial vertex position of the hair, so I can color my hairstyle with a simple gradient on Y axis.

It would also be good to have the non-scaled strand rate (0 is root and 1 is tip, whatever is the length), and the strand length so we can make a lot of different combinations.