Search Issue Tracker

Won't Fix

Votes

6

Found in

2018.4

2019.4

2020.3

2021.1

2021.1.5f1

2021.2

Issue ID

1332632

Regression

No

Masks generated from Images with ASTC compression contain artifacts

uGUI

-

Reproduction steps:
1. Open attached project "Case_1332632" and load Scene "SampleScene"
2. Switch the Build Platform to iOS
3. Observe the Game View

Expected result: Shape of the Mask created by the "Mask" GameObject matches the Sprite that it uses
Actual result: The generated Mask contains artifacts

Reproducible with: 2018.4.34f1, 2019.4.25f1, 2020.3.6f1, 2021.1.5f1, 2021.2.0a15

Notes:
- The project contains 2 Sprites with the ASTC compression, both reproduce the issue
- All ASTC Compressions (excluding ASTC HDR) produce the artifacts
- Artifacts were always there, however, they become much more noticeable between 2020.3 and 2021.1

  1. Resolution Note (2022.1.X):

    Some texture compression will leave artifacts in some pixels. As we are clipping in the shader we clip fragments when alpha is close to 0 (< 1/256 here). There is not much we can do to correct this. Turning off the texture compression or finding a different algorithm is the correct solution.

Comments (2)

  1. Vince-Chimp

    May 25, 2021 18:30

    Jezus christ how is acceptable? It even happens on pretty much default settings and on android. Making sprite packing completely unusable.

  2. KristapsAuzins

    May 11, 2021 08:31

    Fix this!

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.