Unity-Technologies / com.unity.demoteam.hair

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

Render strands as view facing triangle strips - how to use UV and apply textures? #21

Open pauldrummond opened 1 year ago

pauldrummond commented 1 year ago

When rendering strands as view facing triangle strips how can I apply textures to these? The HairVertex node provides 'strandUV' but using this to apply a texture doesn't give the expected result. For example, I'd like to apply alpha to the strands, fading them out at the end. I hoped a vertical gradient texture would do the trick, but it didn't work.

What UV layout do the strands use, and how do we get textures onto them?

Any help is much appreciated.

fuglsang commented 1 year ago

Labeling as documentation request.