Skip to content

Commit 6f3cc27

Browse files
authored
Merge pull request godotengine#101178 from BlueCube3310/web-high-quality
Web: Export ASTC/BPTC compressed textures
2 parents a659548 + 84e6ac9 commit 6f3cc27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

platform/web/doc_classes/EditorExportPlatformWeb.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@
8787
If [code]false[/code], the exported game will not support threads. As a result, it is more prone to performance and audio issues, but will only require to be run on an HTTPS website.
8888
</member>
8989
<member name="vram_texture_compression/for_desktop" type="bool" setter="" getter="">
90-
If [code]true[/code], allows textures to be optimized for desktop through the S3TC algorithm.
90+
If [code]true[/code], allows textures to be optimized for desktop through the S3TC/BPTC algorithm.
9191
</member>
9292
<member name="vram_texture_compression/for_mobile" type="bool" setter="" getter="">
93-
If [code]true[/code] allows textures to be optimized for mobile through the ETC2 algorithm.
93+
If [code]true[/code] allows textures to be optimized for mobile through the ETC2/ASTC algorithm.
9494
</member>
9595
</members>
9696
</class>

platform/web/export/export_plugin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,11 @@ Error EditorExportPlatformWeb::_build_pwa(const Ref<EditorExportPreset> &p_prese
338338
void EditorExportPlatformWeb::get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const {
339339
if (p_preset->get("vram_texture_compression/for_desktop")) {
340340
r_features->push_back("s3tc");
341+
r_features->push_back("bptc");
341342
}
342343
if (p_preset->get("vram_texture_compression/for_mobile")) {
343344
r_features->push_back("etc2");
345+
r_features->push_back("astc");
344346
}
345347
if (p_preset->get("variant/thread_support").operator bool()) {
346348
r_features->push_back("threads");

0 commit comments

Comments
 (0)