summaryrefslogtreecommitdiff
path: root/modules/etcpak/image_compress_etcpak.cpp
AgeCommit message (Collapse)Author
2023-05-12Use DXT1 when compressing PNGs with RGB formatclayjohn
This results in much smaller file sizes with the same quality (cherry picked from commit f84c6df8d1aec35fe53521f241b26fc5312d26e3)
2023-01-30Refactor high quality texture importJuan Linietsky
* Only two texture import modes for low/high quality now: * S3TC/BPTC * ETC2/ASTC * Makes sense given this is the general preferred and most compatible combination in most platforms. * Removed lossy_quality from VRAM texture compression options. It was unused everywhere. * Added a new "high_quality" option to texture import. When enabled, it uses BPTC/ASTC (BC7/ASTC4x4) instead of S3TC/ETC2 (DXT1-5/ETC2,ETCA). * Changed MacOS export settings so required texture formats depend on the architecture selected. This solves the following problems: * Makes it simpler to import textures as high quality, without having to worry about the specific format used. * As the editor can now run on platforms such as web, Mac OS with Apple Silicion and Android, it should no longer be assumed that S3TC/BPTC is available by default for it.
2023-01-19Add ASTC compression and decompression with Arm astcenc.K. S. Ernest (iFire) Lee
Co-authored-by: Gordon A Macpherson <gordon.a.macpherson@gmail.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-11etcpak: Fix ETCPAK_TYPE_ETC2_RA_AS_RGrsjtdrjgfuzkfg
This commit fixes texture compression via ETCPAK_TYPE_ETC2_RA_AS_RG, switching to the right color channels and using the right compression method. Textures imported with previous versions need to be re-imported in order to render correctly.
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-02ETCPAK expects BGRA data for ETCBastiaan Olij
2022-10-14Make some Image methods statickobewi
2022-01-23etcpak: Workaround multiple-of-4 requirement for 3D texture mipmaps.Lyuma
2022-01-22Pad etcpak input to 4x4 blocks. Fixes #49981Lyuma
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-09-22etcpak: Update to upstream commit 7c3cb6f (Jul 29, 2021)Rémi Verschelde
Adds a new `useHeuristics` compression mode for ETC2. Upstream defaults to enable it so we do the same.
2021-04-16Import: Cleanup and optimize etcpak compression methodRémi Verschelde
Avoid unnecessary allocation of temporary buffers for each mip, and creates only one Image with the compressed data. Also renames variable and reorders code for clarity. Clarify that squish is now only used for decompression. Documented which formats can be decompressed in Image.