Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Standard Shader detail maps for WebGL and WebGL 20.

Discussion in 'Web' started by kenshin, Apr 26, 2017.

  1. kenshin

    kenshin

    Joined:
    Apr 21, 2010
    Posts:
    940
    Hi,

    I am checking Unity Standard Shader results with WebGL and WebGL 2.0 and I have a question:

    are Unity Standard shader DETAIL MAPS (albedo and normal) supported/visualized by WebGL and WebGL 2.0?

    Thanks in advance,
    Kenshin
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    It should work. Do you see any problem?
     
  3. StaffanEk

    StaffanEk

    Joined:
    Jul 13, 2012
    Posts:
    380
    Have you tried it.

    If not. Why?

    If you have, please elaborate on your results.
     
  4. kenshin

    kenshin

    Joined:
    Apr 21, 2010
    Posts:
    940
    Yes we found some issues and at some point was not clear if the problem is our code, standard shader or webgl support, because we generate content on the fly.

    I'll do a double check very soon, thanks!
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    You could try to make a standalone build using OpenGL ES 2.0 / 3.0 as Graphics API, to see if you can reproduce the problem there.
     
    kenshin likes this.
  6. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    699
    Be sure that "Detail Normal Map" is turned on in your GraphicsSettings.
     
    kenshin likes this.
  7. Steva

    Steva

    Joined:
    Sep 9, 2010
    Posts:
    60
    i don't see that option. Does it exists in 5.5?
     
  8. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    699
    It is in 5.6
     
  9. Steva

    Steva

    Joined:
    Sep 9, 2010
    Posts:
    60
    Upon further testing, detail normal maps don't work when building for WebGL 2.0 but work in WebGL 1.0, in Unity 5.5.3.
     
    kenshin likes this.
  10. kenshin

    kenshin

    Joined:
    Apr 21, 2010
    Posts:
    940