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

A material (shader) for the Built-in RP for hair is not included. #41

Closed anubis66 closed 1 year ago

anubis66 commented 1 year ago

I wish I can use it on unity 2021 LTS Built-in RP, is this possible?

CakemonBot commented 1 year ago

I haven't actually tried this method, but I believed you can download shader graph package and use it in your Built-in RP project. And if it work, you can then set up your shader for partical hair like this video shows https://youtu.be/9s-KEhQwcV0?t=220

anubis66 commented 1 year ago

Thanks, it works!

fuglsang commented 1 year ago

An example surface shader for the built-in RP is provided in HairMaterialDefaultLitBuiltin.shader. You should be able to write your own surface shader for hair by following the same basic pattern, replacing "BuiltinSurf" in "#pragma surface ..." with your own definition.