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

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,770
    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,065
    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,770
    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,065
    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,770
    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,065
    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,770
    Ah alright, i'll test the latest patch.
     
  8. Reanimate_L

    Reanimate_L

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

    Schubkraft

    Unity Technologies

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

    Reanimate_L

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