-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support SRP (URP/HDRP) Material mapping on Asset Import #38
Comments
Thanks for the request, it's been a long-standing one :)
because that's where both of these have their strengths, at least right now. The issue with (2) above is that it will not properly capture material properties as in the GLB file (there are simply features that do not map to any shader shipping with Unity/URP/HDRP); I agree that it would still be useful to have. Two more options:
instead of the current approach of having divergent features across multiple shaders. |
Yeah personally I think (4) might be the better option, though I think it's important for a glTF plugin to be able to repack texture channel according to SRP Lit shader's preference, so that users can switch to Lit when needed. One common roundtrip problem:
(For example, how do we export a Tree? atteneder/glTFast#343 I end up first replacing Unity's SpeedTree shader with Lit, then on import, using a custom shader to support ORM map.) |
Option (4) above is implemented for a while (cross-pipeline Shader Graphs); there are a number of other issues listed here (e.g. remapping shaders on import) remaining. |
This is more of a feature request than a bug, but currently UnityGLTF import materials with BIRP shader, so they do not work under URP or HDRP.
(glb file imported with glTFast, GLTFUtility, UnityGLTF)
2 ways to address this issue:
Personally I prefer option (2), as it matches what Unity model importer does; but it can't hurt to also have (1).
Currently both glTFast and GLTFUtility offers (1) using a custom shader graph, and GLTFUtility in addition support (2).
(Hope this doesn't create too much competition between plugins, but I also don't want to switch between 3 GLTF plugins just to get work done :) )
Thx!
The text was updated successfully, but these errors were encountered: