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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Ugly shadows in WebGL

Discussion in 'Editor & General Support' started by Egisto, Jan 12, 2017.

  1. Egisto

    Egisto

    Joined:
    May 9, 2013
    Posts:
    9
    Hi!

    I'm having a problem with the realtime shadows in Unity WebGL. As you can see in the attached image the shadows are terrible.

    I'm using soft shadows, I tried increasing the quality in Quality Settings...

    The simulation is here

    Anyone can help me?

    Thanks in advance.
     

    Attached Files:

  2. Fabian-Haquin

    Fabian-Haquin

    Joined:
    Dec 3, 2012
    Posts:
    231
    What's the scale of your scene ?
    For example, is the door having something like 2 unity cubes of height ? (2 meters)
     
  3. Egisto

    Egisto

    Joined:
    May 9, 2013
    Posts:
    9
    Thanks for your answer. I think the scale is ok. The strange thing is that in the editor the shadows look fine.
     

    Attached Files:

  4. Egisto

    Egisto

    Joined:
    May 9, 2013
    Posts:
    9
    Hi! I created a new project and with only a plane and a cube, this is the result of the shadows (all the paremeters by default).
     

    Attached Files:

  5. Fabian-Haquin

    Fabian-Haquin

    Joined:
    Dec 3, 2012
    Posts:
    231
    What is your Unity version ?
     
  6. Egisto

    Egisto

    Joined:
    May 9, 2013
    Posts:
    9
    Pro version 5.4.1f
     
  7. Fabian-Haquin

    Fabian-Haquin

    Joined:
    Dec 3, 2012
    Posts:
    231