Search Issue Tracker

Fixed in 2020.2.X

Votes

7

Found in

2020.1.0a4

2020.1.0b5

2020.2

Issue ID

1240932

Regression

Yes

[WebGL] shadows with soft shadows setting enabled have pixelated edges in WebGL build

WebGL

-

How to reproduce:
1. Open the project from the attached file "1240932.zip"
2. In the Hierarchy select "Directional Light" GameObject and in the Inspector set Shadow Type to Soft Shadows
3. Go to File -> Build and Run
4. Inspect the shadow in the WebGL build

Expected result: shadow has smooth edges
Actual result: shadow edges are pixelated

Reproducible with: 2020.1.0a4, 2020.1.0b8, 2020.2.0a9
Not reproducible with: 2018.4.22f1, 2019.3.12f1, 2020.1.0a3

Notes:
- Not reproducible on Windows or Mac builds
- Reproducible on Built-in pipeline and URP
- Tested with these URP versions: 4.10.0-preview, 7.0.1, 7.1.8, 7.3.1, 8.0.1, 8.1.0, 9.0.0-preview.14
- Default quality settings are the same for Windows and WebGL

  1. Resolution Note (fix version 2020.2):

    WebGL 2 has mixed support for depth texture interpolation, as used by soft shadow filtering. I added a work-around to allow soft shadows to work.

    Fixed in 2021.1.0a1

  2. Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.5f1

Comments (8)

  1. Sycoforge

    Jan 11, 2021 15:55

    Not fixed in 2020.2. Any news on this?

  2. pawelzukowicz

    Jan 07, 2021 19:06

    This bug is still in 2020.2f1 !

  3. rbcode

    Nov 24, 2020 08:44

    works in 2021.1.0a6 Alpha. Waiting for a stable release.

  4. Sycoforge

    Nov 14, 2020 16:55

    Can we expect a backport to 2020.1 soon? There's zero value to have this fix in an alpha version only.

  5. Tylerdjo

    Oct 28, 2020 11:28

    Curious to see if there is any further progress on this. I am still getting the problem in webgl builds produced with 2020.1.4f1 and 2020.2.0b8.

  6. pod3

    Sep 03, 2020 09:00

    Hello, it's solved for me. I was just using the wrong pipeline asset (high instead of medium). The WebGL build only uses the medium asset by default and there the shadows werent set to soft.

  7. pod3

    Sep 02, 2020 16:57

    Hi there. Has there been any progress on this issue? I'm experiencing the same with a webgl build out of 2020.1.0b7. Is there a later release i can Upgrade to, that doesn't have this problem? Cheers

  8. Arnage_nl

    Jul 27, 2020 13:41

    Just wanted to report that this is still the case in the release version of 2020.1.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.