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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question WebGL build is not working properly(3D objects looks metallic and lights gone) in browsers.

Discussion in 'Web' started by Gokulrajan, Jun 4, 2020.

  1. Gokulrajan


    May 19, 2020
    Hi Folks,

    I'm new to unity. I am creating a sample room viewer project in unity(version 2019.3.13f1) and deploy in WebGL. Everything working fine in unity editor and I took a build. Then I open the index.html file in Microsoft Edge here the real problem has come, the metallic value of every 3D objects in the scene was increased and looks very shiny and lightings are gone.

    Then I hosted the webGL build file in firebase and get the file link, tried to open it in different browsers like Chrome and Safari. Here 3D model looks fine but that lightings are gone.

    Finally what I'm asking was how to make my project behaves and looks like the same in WebGL like as in unity Editor. Or is there anything I missed to get the proper result.

    Game screen in Unity:
    Screenshot (131).png
    WebGL output (3D objects looks metallic and lights gone): Screenshot (132).png