MixedRealityToolkit-Unity: Standard Shader error on Android
Describe the bug
I have a project running with the MRTK and for some reason, whenever I try to build for Android, I receive this error message. I’m not very good with shaders, so I have no idea how to deal with it 😦
The interesting thing is, when I just build a second time after the fail, it works.
Shader error in 'Mixed Reality Toolkit/Standard': Non system-generated input signature parameter (BLENDINDICES) cannot appear after a system generated value. at line 840 (on gles3)
Compiling Vertex program with UNITY_PASS_FORWARDBASE _EMISSION STEREO_INSTANCING_ON
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 SHADER_API_MOBILE UNITY_HARDWARE_TIER2 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING
To reproduce
Steps to reproduce the behavior:
I only managed to reproduce it in my project, but until I know what this means I can’t really try to reproduce it in the MRKT,
Expected behavior
No shader errors
Your Setup (please complete the following information)
- Unity Version 2018.4.6f1
- MRTK Version mrtk_development
Target Platform (please complete the following information)
- Android
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 25 (21 by maintainers)
@SafetyOrange last time it was a Unity issue, it’s probably one this time as well. Filing a bug report referencing 1187259 would be the right step
Yes, I agree with @Alexees. Filing a bug with Unity would be a great first step.
I’m sorry to poke a closed thread but his issue seems to have reappeared in Unity 2020.3.3 (and 2020.3.4).
Android Platform w/ Oculus VR, the Standard Shader fails to compile with error:
Shader error in 'Mixed Reality Toolkit/Standard': Non system-generated input signature parameter () cannot appear after a system generated value. at line 759 (on gles3)EDIT: Using MRTK v2.6.1
Good news, Unity has fixed this issue and reported:
Thank you for reporting @vincenzorin. Unfortunately this is an issue that is currently out the MRTK’s control. But, I will be sure to post here when I hear back from Unity.
Looking at Unity’s private issue tracker the bug is still open. I just sent them an email to see if any progress has been made.
They don’t necessarily put everything on the public issue tracker
Latest feedback from Unity: