From 4cea5f8b78f82c55cc1394480dddf8c7cff79071 Mon Sep 17 00:00:00 2001 From: jkpete <1031139173@qq.com> Date: Fri, 31 Jan 2025 13:29:44 +0800 Subject: [PATCH] fixed some texture import type for support android export --- Example/Action3D/SkyBox/lakeside.jpg.import | 5 +++-- icon.svg.import | 5 +++-- project.godot | 1 + 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Example/Action3D/SkyBox/lakeside.jpg.import b/Example/Action3D/SkyBox/lakeside.jpg.import index 5f3e639..d27376e 100644 --- a/Example/Action3D/SkyBox/lakeside.jpg.import +++ b/Example/Action3D/SkyBox/lakeside.jpg.import @@ -4,15 +4,16 @@ importer="texture" type="CompressedTexture2D" uid="uid://ss8dh8aaqc4w" path.s3tc="res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.s3tc.ctex" +path.etc2="res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.etc2.ctex" metadata={ -"imported_formats": ["s3tc_bptc"], +"imported_formats": ["s3tc_bptc", "etc2_astc"], "vram_texture": true } [deps] source_file="res://Example/Action3D/SkyBox/lakeside.jpg" -dest_files=["res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.s3tc.ctex"] +dest_files=["res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.s3tc.ctex", "res://.godot/imported/lakeside.jpg-33a4031d53286dbc1f7dd66477cda464.etc2.ctex"] [params] diff --git a/icon.svg.import b/icon.svg.import index e9db86f..5584d5a 100644 --- a/icon.svg.import +++ b/icon.svg.import @@ -4,15 +4,16 @@ importer="texture" type="CompressedTexture2D" uid="uid://31r216hix0wk" path.s3tc="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex" +path.etc2="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex" metadata={ -"imported_formats": ["s3tc_bptc"], +"imported_formats": ["s3tc_bptc", "etc2_astc"], "vram_texture": true } [deps] source_file="res://icon.svg" -dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex"] +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.s3tc.ctex", "res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.etc2.ctex"] [params] diff --git a/project.godot b/project.godot index 1a808f9..5d6eb0b 100644 --- a/project.godot +++ b/project.godot @@ -90,3 +90,4 @@ jump={ renderer/rendering_method="gl_compatibility" renderer/rendering_method.mobile="gl_compatibility" +textures/vram_compression/import_etc2_astc=true