Skip to content

Commit 84e6ac9

Browse files
committed
Web: Export ASTC/BPTC compressed textures
1 parent bdf625b commit 84e6ac9

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
@@ -334,9 +334,11 @@ Error EditorExportPlatformWeb::_build_pwa(const Ref<EditorExportPreset> &p_prese
334334
void EditorExportPlatformWeb::get_preset_features(const Ref<EditorExportPreset> &p_preset, List<String> *r_features) const {
335335
if (p_preset->get("vram_texture_compression/for_desktop")) {
336336
r_features->push_back("s3tc");
337+
r_features->push_back("bptc");
337338
}
338339
if (p_preset->get("vram_texture_compression/for_mobile")) {
339340
r_features->push_back("etc2");
341+
r_features->push_back("astc");
340342
}
341343
if (p_preset->get("variant/thread_support").operator bool()) {
342344
r_features->push_back("threads");

0 commit comments

Comments
 (0)