summaryrefslogtreecommitdiffstats
path: root/modules/etcpak/image_compress_etcpak.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Improve etcpak image padding and clean up the codeBlueCube33102024-07-261-94/+117
|
* Support 64-bit image sizes for VRAM compressionBlueCube33102024-07-211-3/+3
|
* Merge pull request #88763 from BlueCube3310/image-is-compressed-staticRémi Verschelde2024-05-021-1/+1
|\ | | | | | | Image: Add static `is_format_compressed` function.
| * Image: Add static `is_format_compressed` function.BlueCube33102024-02-281-1/+1
| |
* | EditorFileSystem: Add verbose print for file being (re)importedRémi Verschelde2024-02-281-1/+1
|/ | | | Also print the time it took for each file.
* [etcpak] Sync with upstreamBlueCube33102024-02-051-5/+4
|
* Merge pull request #86313 from BlueCube3310/etc2-r-rgRémi Verschelde2024-01-291-18/+51
|\ | | | | | | Implement `ETC2_R` and `ETC2_RG` compression to `etcpak`
| * Implement ETC2_R and ETC2_RG compression to `etcpak`BlueCube33102023-12-191-18/+51
| |
* | Use ETC2 compression for grayscale imagesBlueCube33102024-01-131-1/+1
|/
* Improve normal map VRAM Compression with RGTCBlueCube33102023-12-061-2/+11
|
* Use DXT1 when compressing PNGs with RGB formatclayjohn2023-04-271-1/+1
| | | | This results in much smaller file sizes with the same quality
* Refactor high quality texture importJuan Linietsky2023-01-301-9/+7
| | | | | | | | | | | | | | | * 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.
* Add ASTC compression and decompression with Arm astcenc.K. S. Ernest (iFire) Lee2023-01-191-6/+6
| | | | | Co-authored-by: Gordon A Macpherson <gordon.a.macpherson@gmail.com> Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* etcpak: Fix ETCPAK_TYPE_ETC2_RA_AS_RGrsjtdrjgfuzkfg2023-01-111-2/+3
| | | | | | | 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.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | 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".
* ETCPAK expects BGRA data for ETCBastiaan Olij2022-12-021-0/+3
|
* Make some Image methods statickobewi2022-10-141-1/+1
|
* etcpak: Workaround multiple-of-4 requirement for 3D texture mipmaps.Lyuma2022-01-231-3/+7
|
* Pad etcpak input to 4x4 blocks. Fixes #49981Lyuma2022-01-221-6/+57
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* etcpak: Update to upstream commit 7c3cb6f (Jul 29, 2021)Rémi Verschelde2021-09-221-2/+2
| | | | | Adds a new `useHeuristics` compression mode for ETC2. Upstream defaults to enable it so we do the same.
* Import: Cleanup and optimize etcpak compression methodRémi Verschelde2021-04-161-0/+184
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.