Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. 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 Unity WebGL2.0 Current Status?

Discussion in '5.4 Beta' started by Reanimate_L, May 13, 2016.

  1. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    So can we get a status what is the limitation in Unity WebGL 2.0 currently?
    From what i've seen :
    - no deffered shading
    - no linear color
    - HDR seems not working properly
    upload_2016-5-13_15-2-26.png
     
    Last edited: May 13, 2016
    arumiat likes this.
  2. arumiat

    arumiat

    Joined:
    Apr 26, 2014
    Posts:
    323
    Can you post a screenshot of the exact same view? Be interesting to see

    +1 for linear colour space, very difficult to get assets looking good in gamma
     
  3. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    -Deferred shading is supported in WebGL 2.0 (and in WebGL 1.0 on some browsers/GPUs).
    -Linear color is currently not supported due to lack of texture compression support AFAIK.
    -HDR should work in WebGL 2.0 (and in WebGL 1.0 on some browsers/GPUs).
     
  4. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Well that's weird, i cannot make all of the to work in webGL 2 browser.
    -deferred shading return black
    -and HDR, well as you can see the picture in my first post, seems like the accuracy are diferrent
     
  5. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    1. Did you enable and are you actually running WebGL 2.0? Open the JavaScript console, it will print the WebGL version used at startup.

    2. If it prints WebGL 2.0, and those don't work, please file a bug, and post the case number here, so we can take a look.
     
  6. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    @jonas echterhoff
    Yep the browser are running in webGL2.0, console also printed webGL 2.0
    is precomputed GI not compatible with webGL 2.0?

    btw i'm testing deferred, baked directional specular lightmap
    Browser
    upload_2016-5-18_14-59-23.png
    Editor
    upload_2016-5-18_14-59-42.png

    Same configuration for lightmap but running in forward.
    Browser
    upload_2016-5-18_15-8-8.png

    So it seems,
    in deferred the procedural sky return black, and reflection are not working
    HDR are behave differently between forward and deferred

    Also diferrent visual between Chrome and firefox, both of them are running webGL2.0
    all above are using firefox,
    this one in chrome
    upload_2016-5-18_15-14-10.png
     
    Last edited: May 18, 2016
  7. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    1. Realtime GI is not available in WebGL (neither 1.0 nor 2.0).
    2. Can you submit a bug with a repro scene for the black background and post the case number here so we can take a look?
    3. Chrome's WebGL 2.0 implementation was lacking some functionality we need, which would explain the black textures. Try downloading the latest Chrome Canary build, and try that.