Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextureFormat.ASTC_RGB_8x8 quality is slightly reduced. #188

Open
Thura122016 opened this issue Jun 20, 2023 · 1 comment
Open

TextureFormat.ASTC_RGB_8x8 quality is slightly reduced. #188

Thura122016 opened this issue Jun 20, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Thura122016
Copy link

Bug
When I edit TextureFormat.ASTC_RGB_8x8, It changes the TextureFormat.ETC2_RGBA8 and the image quality is slightly reduced.
Can you fix it or How can I?

@Thura122016 Thura122016 added the bug Something isn't working label Jun 20, 2023
@K0lb3
Copy link
Owner

K0lb3 commented Jul 18, 2023

All texture compression algorithms employed by Unity are lossy.
When replacing a texture, it either has to be stored as uncompressed type or has to be compressed again.
Uncompressed increases the size of the asset by a lot (2~8x of the original image data size), while recompression creates a loss in quality.

You can set an uncompressed target texture type by using Texture2D.set_image. You can achieve no compression by using TextureFormat.RGBA32.

@K0lb3 K0lb3 added the help wanted Extra attention is needed label Jul 18, 2023
@K0lb3 K0lb3 removed the bug Something isn't working label Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants