Search Unity

Help Wanted LWRP Shader Graph material specular problems on iOS and Android

Discussion in 'Shader Graph' started by lostminds, Jun 25, 2019.

  1. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    17
    I'm using light weight render pipeline and shader graph for a mobile app, and I'm having problems with specular highlights on the device on both iOS and Android. In the editor the materials look fine, but on the device the specular highlights are exaggerated and look like they use low precision calculations.

    138189-specular-problems.jpg

    This only seems to apply to shader graph materials, as you can see in the example below using a standard LWRP Lit shader doesn't get the same problems. Also, the precision problem seems to be related with camera FOV angle, with the problem getting worse on smaller FOV angles.

    138235-specular-problems-comparelw.jpg

    I'm now using 2019.2b6, LWRP and Shader graph v 6.7.1, but the problem has been around (and I've been waiting for a fix) at least since 2019.1

    Does anyone have any advice as to what might cause this, and how to avoid it?

    specular_problems.jpg
     
    Last edited: Jun 25, 2019
    Abruzzi likes this.
  2. Abruzzi

    Abruzzi

    Joined:
    Feb 6, 2015
    Posts:
    14
    Yeap! I have the same issue! Objects that use Shader Graph material(also Metallic setup) are brighter on iOS and Android than in Editor. Use Unity 2019.3.0a8 and LWRP 6.7.1, but this issue was appear long time ago. with older versions. "I thought that my hands were crooked, and I was doing something wrong! :D"
     
    lostminds likes this.
  3. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    17
    In the new Shader Graph 6.9.0 package there is now a precision setting where you can pick half or float. Unfortunately it doesn't seem to make any difference as far as I can tell. So either I guess it's not working properly, or the precision problem is somewhere else in the render pipeline.
     
  4. lostminds

    lostminds

    Joined:
    Jan 17, 2019
    Posts:
    17