How to add built-in shaders in an Android build #688
Replies: 1 comment
-
Glad you found a solution, but it's not an ideal one, because it'll include many shader variants, even those you'll never need. The documentation about it explains it in detail. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
EDIT:
I found that putting them into the "Alwais Included Shaders" solves the problem.
Anyway, is this the right solution?
I recently found that a possible bug in using built-in shaders, in
BuiltInMaterialGenerator.cs
:If line 1 returns null we have a problem in line 2.
In my case, the app running on an Android device doesn't find the
glTF/PbrMetallicRoughness
shader, even if it is apparently included in glTFast package. If I try to copy the package Shader directory into project Assets, I get a conflict warning from the editor.How will I ensure that those shaders are included in the Android build?
Beta Was this translation helpful? Give feedback.
All reactions