Unhelpful error message about alpha blended shader not supported on Android
tracked
M
MagmaMCVR
I am using Avatar SDK Version 3.5.1 and i am unable to use alpha blended shader on the android build as i get this error
`Avatar uses unsupported shader 'VRChat/Mobile/Paftieles/Alpha Blendecf.
You can only use the shaders provided in 'VRChat/Mobiie' for Quest
avatars.`
and there also seems to be a missing line on the Avatar ShaderWhiteList
was this intentional?
Log In
Fax
Hi, MagmaMCVR! Thank you for your request.
This is intentional. Quest avatars don't support transparency for performance reasons.
I changed the title of your post to indicate that this error message is incorrect. We'll improve the message or remove the shader from the avatars SDK.
M
MagmaMCVR
Fax i find adding a message to show that it can not be used anymore on quest avatars would be better than removing it as it would still be useful For Worlds
Fax
MagmaMCVR: Agreed! We definitely wouldn't remove it from worlds, but the avatars SDK may not need those shaders.
Edit: Although... Some PC avatars may use those shaders, so they can't really be removed!🤔
I guess a warning will have to do.
M
MagmaMCVR
Fax
#if UNITY_ANDROID
IEnumerable<Shader> illegalShaders = VRC.SDK3.Validation.AvatarValidation.FindIllegalShaders(avatar.gameObject);
foreach (Shader s in illegalShaders)
{
string shaderErrorMessage = "Avatar uses unsupported shader '" + s.name + "'. ";
if (s.name == "VRChat/Mobile/Particles/Alpha Blended")
shaderErrorMessage += "Quest avatars don't support transparency for performance reasons.";
else
shaderErrorMessage += "You can only use the shaders provided in 'VRChat/Mobile' for Quest avatars.";
_builder.OnGUIError(avatar, shaderErrorMessage, delegate () { Selection.activeObject = avatar.gameObject; }, null);
}
#endif
i have added a basic message for this on line 741
in the file
com.vrchat.avatars/Editor/VRCSDK/SDK3A/VRCSdkControlPanelAvatarBuilder.cs
hope this helps to get it implemented in the next SDK Build
This post was marked as
tracked