Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Question Is urp shader graph working with webgl1?

Discussion in 'Web' started by Gunner22, Oct 14, 2021.

  1. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    57
    When I set mi webgl graphics API to webgl1 shader is just gray but it works fine on webgl2.
    So I am interested if this is the problem with a shader or if shader graph is generally not supported in webgl1.
     
  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    449
    Can't answer directly but you should be aware that WebGL1 has been depreciated in later versions of Unity. Good practice to always precise which version you're using.
     
  3. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    57
    The problem is I want my webgl app to work on mobile, which is not a problem for android, but the IOS apparently doesn't support webgl2 only webgl1.
     
  4. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    449
    WebGL2 should be enabled by default in IOS15...
     
  5. Gunner22

    Gunner22

    Joined:
    Jan 15, 2020
    Posts:
    57
    I want to target older phones so I still need webgl1 and I noticed that webgl2 could also be a problem for some older androids.