From bc24d0135944dedbdbaa8f6aff8f9faee772fe3e Mon Sep 17 00:00:00 2001 From: Lyuma Date: Mon, 30 Jan 2023 23:37:55 -0800 Subject: gltf: Add GLTFHandleBinary::HANDLE_BINARY_EMBED_AS_UNCOMPRESSED This option allows for a safe fallback for embedded gltf textures in cases where VRAM compression is not needed. Add an is_editor_hint guard around GLTFHandleBinary::HANDLE_BINARY_EXTRACT_TEXTURES, to use EMBED_AS_UNCOMPRESSED by default at runtime. This provides an option for pixel art to be stored losslessly. Additionally, respect project importer defaults for texture import settings. Avoid writing and reimporting extracted textures identical to version on disk. --- modules/gltf/doc_classes/GLTFState.xml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/gltf/doc_classes') diff --git a/modules/gltf/doc_classes/GLTFState.xml b/modules/gltf/doc_classes/GLTFState.xml index b8943795a0..b322c07cec 100644 --- a/modules/gltf/doc_classes/GLTFState.xml +++ b/modules/gltf/doc_classes/GLTFState.xml @@ -264,10 +264,16 @@ + Discards all embedded textures and uses untextured materials. + Extracts embedded textures to be reimported and compressed. Editor only. Acts as uncompressed at runtime. + Embeds textures VRAM compressed with Basis Universal into the generated scene. + + + Embeds textures compressed losslessly into the generated scene, matching old behavior. -- cgit v1.2.3