Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2019.3.6f1
Issue ID
1230918
Regression
No
[Encoding/compression] Lightmap Encoding Quality settings do not apply to Shadowmask textures
Steps to reproduce:
1. Download and open the attached project
2. Open SampleScene
3. Bake the lighting
4. Navigate to Project Settings > Player > Lightmap Encoding Quality and make sure that it is set to High
5. Select shadowmask texture
6. Notice that its compression quality is set to Normal
Notes:
- Reproduces on 2017.4.38f1, 2018.4.20f1, 2019.3.6f1
- This negatively impacts the quality of shadowmask output (please see the attached .gif)
- For more information please refer to the following Favro card: https://favro.com/organization/c564ede4ed3337f7b17986b6/0ae5422e2f78207a0998ab80?card=Uni-132740
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
Resolution Note (fix version 2022.1):
The behavior that Lightmap Encoding doesn't affect shadowmask textures is actually by design (albeit arguably a confusing design). Lightmap Encoding was originally intended to only affect reguar lightmaps and directional lightmaps, but only in some cases. This is not intuitive and we aim to address this issue by completely decoupling Lightmap Encoding from lightmap compression. Instead, we aim to add a new explicit lightmap compression setting in the Lighting Data Asset that gives the user full control of the compression quality used for _all_ lightmaps (including directional lightmaps, and shadowmasks). This removes a lot of edge case and simplifies the logic regarding how to configure lightmap compression.