Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

WebGL WebGL 2.0?

Discussion in '5.4 Beta' started by Reanimate_L, Feb 10, 2016.

  1. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Hi Guys, i just want to clarify maybe i missed it in the change log.
    is webGL 2.0 already implemented in released 5.4 beta?
    or is there any fix for webGL problem with standard shaders in 5.4 beta?
    The current webGL problem with standard that i've encountered are :
    - Bad quality for mipmapping or roughness reflection
    - Normal map heavily compressed resulting in dotted artifact if using normal map

    Maybe there's other problem that people encountered.
     
  2. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,078
    WebGL 2.0 is available in the 5.4 and 5.3 build. Under Player Settings > Other Settings untick Auto Graphics API and add OpenGL ES 3.0 there.

    We currently have no active cases regarding the other issues you describe. Could you be so nice to submit a bug report for each and ping the case numbers here? That'd be ace!
     
  3. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    There's bug report already, not mine but same problem with standard shaders.
    #747796
     
  4. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,078
    Sadly we can't fix this one ourselves yet :( But we are talking to the browser vendors about it.
    It works in WebGL 2.0 but that is not of much help right now.
     
  5. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    I see, thanks for the information.
    And not sure this information might help, we all know that we can override the standard shader to compile with the highest quality to webGL so we can get good quality for reflection and roughness.
    The only thing that we can't control is the normal map compression since in unity WebGL = OpenGLES 2.0 according to this thread and that make the normal map heavily compressed and blocky.
    Now here's the weird part, if i just build the scene mostly it runs fine also works fine with additive scene bundles, but if the objects are prefab bundle the normal map getting heavily compressed, always happened.
     
  6. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,078
    We recently fixed this https://issuetracker.unity3d.com/is...hader-artifacts-when-loaded-from-asset-bundle with 5.3.2p3 patch release with shader issues in asset bundles. Maybe that is what you are seeing?
     
  7. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Ah alright, i'll test the latest patch.
     
  8. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    @Schubkraft okay it seems the asset bundle normal map compression bug are fixed :)
     
  9. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,078
    Most excellent! Good luck with your project!
     
    Reanimate_L likes this.
  10. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Thank you :)