Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baked Hair Materials are incorrect #37

Open
baroquedub opened this issue Feb 7, 2023 · 0 comments
Open

Baked Hair Materials are incorrect #37

baroquedub opened this issue Feb 7, 2023 · 0 comments

Comments

@baroquedub
Copy link

As per: https://forum.reallusion.com/532133/Auto-Setup-for-Unity-v143-Baked-Hair-Materials-are-incorrect-bug-report-and-fix

Unity 2021.3.16
URP 12.1.8
Autosetup 1.4.3

The baking process ("Bake high quality materials down to compatible textures") exports out a single 'Hair' material asset from the '2 Pass Hair' high quality original. Both material slots on the 'baked' prefab use that one material, which uses the RL_HairShader_2nd_Pass_Baked_URP shader:
https://forum.reallusion.com/uploads/images/8f3cbfec-d931-480c-9ea4-fbb1.png

This results is hair that has incorrect transparency depth sorting:
https://forum.reallusion.com/uploads/images/8f3cbfec-d931-480c-9ea4-fbb1.png

The RL_HairShader_1st_Pass_Baked_URP shader does exist in the package so it's possible to fix the issue by creating the missing material and assigning it appropriately:

https://forum.reallusion.com/uploads/images/6fcb13ae-db27-4d98-a54f-6c6a.png

https://forum.reallusion.com/uploads/images/9edadd9d-48fd-4323-bd6c-1d2f.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant