Search Unity

Question Best transparent shaders to use for mobile devices?

Discussion in 'AR' started by umesh_unity109, Jun 7, 2021.

  1. umesh_unity109

    umesh_unity109

    Joined:
    Jan 24, 2021
    Posts:
    9
    We are experiencing some performance issues with the Standard transparent shaders we have used for our AR Plane material. We are also experiencing some drifting with objects placed on AR Plane when the material used is transparent. Are there any recommendations on which transparent shader works best with mobile devices in AR?
     
  2. FrankvHoof

    FrankvHoof

    Joined:
    Nov 3, 2014
    Posts:
    258
    Are you using the Universal Render Pipeline (URP)?
    The shaders in that pipeline have been set up to work well for mobile platforms.
    As far as drifting goes: This should not be related to your material.
     
    MatteoMazzeriBlasph likes this.
  3. umesh_unity109

    umesh_unity109

    Joined:
    Jan 24, 2021
    Posts:
    9
    Thanks for your response @FrankvHoof ! We aren't using any render pipelines as of now. We will give it a try and let you know how it goes. In our experience, the drifting of the model was greatly reduced after we switched from a standard transparent shader to a standard opaque shader. Is there anything else that might cause object drifting in your experience?
     
  4. FrankvHoof

    FrankvHoof

    Joined:
    Nov 3, 2014
    Posts:
    258
    "the drifting of the model was greatly reduced after we switched from a standard transparent shader to a standard opaque shader."
    This sounds more like it's performance-related? I.e. the app is running at less than 60fps when the transparent shader is visible, or it's triggering the device to look at power consumption, reducing the importance of the ARKit/ARCore process?
    Shaders aren't applied until after the object has been positioned, so there shouldn't be a direct link. But an indirect one might exist.
     
    Halfspacer likes this.
  5. Halfspacer

    Halfspacer

    Joined:
    Sep 13, 2014
    Posts:
    23
    Definitely sounds like a general performance issue. But as far as the AR Plane material goes, you can see if Mobile/Particles/Additive or Alpha Blended look alright. They're very lightweight and more suitable than the Standard shader.