Unity-Technologies / com.unity.demoteam.hair

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

Enemies hair shader seems to fail with Hair 0.16. #100

Open methusalah opened 1 month ago

methusalah commented 1 month ago

I used to use the hair shader showcases in the Enemies project with Hair 0.10 without issue.

Once I upgraded to Unity 2022 and Hair 0.16, my old version of the shader complained about "volumeDesc" not existing and failed to render.

Then I updated the shader with the latest one from the project Enemies on the Asset Store. The error was gone but the hair fail to render still (the hair is invisible, not even as the original lines forming a cube).

I also tried to simplify the shader a little, connecting the HairVertex node outputs to the Hair node directly, without success.

Anyone knows where to find a hair shader as advanced as the Enemies one, that works with Hair 0.16?

fuglsang commented 1 month ago

Thanks, this sounds like a migration issue. Will look into it!

ldoppertin commented 1 month ago

Hi, I solved the "volumeDesc" issue in my project by editing HairVolumeUVW.hlsl in the following way (line 12-13): Screenshot 2024-08-05 165318

methusalah commented 1 month ago

Hi, I solved the "volumeDesc" issue in my project by editing HairVolumeUVW.hlsl in the following way (line 12-13):

That's interesting, thanks for sharing