Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 2020.3.8f1 and WebGL1.0

Discussion in 'WebGL' started by Siba_M_M, Jun 7, 2021.

  1. Siba_M_M

    Siba_M_M

    Joined:
    Aug 11, 2020
    Posts:
    15
    Hi,
    I'm Building a WebGL app.
    I'm using URP and Unity 2020.3.8f1.
    When I'm building the project it works great on WebGL 2.0 but the textures are messed up for WebGL 1.0 and I need WebGL 1.0 for Safari.
    Even when I build the example scene that comes with Unity the textures are messed up (Check photos please )
    Any idea how can I fix this ?
    Thanks
     

    Attached Files:

  2. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    376
    Sorry, I don't have an answer. But if you don't mind me suggesting, I noticed you have posted this twice. Please be mindful of not posting multiple times the same question to keep the forums tidy and help other users find answers to similar questions. Thank you.
     
    Siba_M_M likes this.
  3. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    334
    The problem here is that WebGL1 does not support High Quality Lightmap Encoding, which uses Float16 textures. If you're including WebGL1, you should use Normal Lightmap Encoding. You can set this in the Player Settings for WebGL. We've recently added a Player Settings warning for this, and has been backported to previous versions for upcoming releases.
     
    Siba_M_M and De-Panther like this.
  4. Siba_M_M

    Siba_M_M

    Joined:
    Aug 11, 2020
    Posts:
    15
    Thank you for telling me :) .. I'll delete the other one
     
  5. Siba_M_M

    Siba_M_M

    Joined:
    Aug 11, 2020
    Posts:
    15
    Thank you so much!! It worked!
    One more question.. The performance in Chrome and Firefox is great but in Safari it is not good and has a low frame rate .. Any idea what is causing this and how can I fix it ?
     
  6. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    334
    Without looking at the project build, I have no way of knowing what would be causing the slow frame rate in Safari. One thing you can try is the Safari Technical Preview release, https://developer.apple.com/safari/technology-preview. This has WebGL2 support in it, and will be released for iOS 15 in the fall, and MacOS at some point in the near future.