Search Unity

Question Shadergraph Shaders not rendering on mobile devices

Discussion in 'Shader Graph' started by GodswordUchiha, Mar 13, 2021.

  1. GodswordUchiha

    GodswordUchiha

    Joined:
    Nov 15, 2020
    Posts:
    6
    Hello I'm new to unity,i didn't know about URP so i used LWRP for my project.I created a portal shader for my game using shadergraph that came with the LWRP package,the shader renders well on a windows pc build but when i tested it on in an android build it shows nothing,it's completely invisible,this is not due to sorting layers cause i put it on the right sorting layer and also added the shader to the Always included list in the Graphics settings i've tried many solutions mentioned on this forum but none worked for me,i don't just understand what is happening,is it that android can't use shaders or something else
    pictures of the windows build and android build and the portal shader rendering is attached to the thread my pen is pointing to the portal shader.I Hope i get a reply soon this is really frustrating,oh and i 'm using Unity 2019.4.9f1 And you can also see the bloom shader effect on that female archer sprite shows in the windows build but not the android build tmp-cam--1155630458.jpg tmp-cam-67955873.jpg
     
  2. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    OpenGLES2 has no post processing, so something to check is your graphics APIs in build settings - make sure either you're not supporting it at all (i.e. only allow the game to run on devices that support bloom), and if you're specifying the order of graphics APIs (not using auto) that OpenGLES2 is the lowest one (i.e. you still want people to be able to play, despite no bloom).
     
  3. GodswordUchiha

    GodswordUchiha

    Joined:
    Nov 15, 2020
    Posts:
    6
    OK,thanks for answering but what about the portal shader,shaders that are not even using postprocessing are not rendering on mobile devices,is it that shaders can't work on android
     
  4. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,555
    I don't know enough to say - personally Shader Graph has been reliable except with WebGL 1.0 (which is like OpenGLES2). Hopefully somebody with a clue can help dig further.
     
  5. GodswordUchiha

    GodswordUchiha

    Joined:
    Nov 15, 2020
    Posts:
    6
    Mehn,how will i get that person?, anyways thanks for replying.
     
    adamgolden likes this.