From fc78fa7ec5035e6ce6817ced11fc5768219edd71 Mon Sep 17 00:00:00 2001 From: lawnjelly Date: Mon, 3 Jun 2024 11:13:43 +0100 Subject: [PATCH] ImageTexture - document workaround for mipmap generation --- doc/classes/ImageTexture.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/ImageTexture.xml b/doc/classes/ImageTexture.xml index 2eadf643d8a..1d589dbac6c 100644 --- a/doc/classes/ImageTexture.xml +++ b/doc/classes/ImageTexture.xml @@ -26,6 +26,7 @@ [/codeblock] An [ImageTexture] is not meant to be operated from within the editor interface directly, and is mostly useful for rendering images on screen dynamically via code. If you need to generate images procedurally from within the editor, consider saving and importing images as custom texture resources implementing a new [EditorImportPlugin]. [b]Note:[/b] The maximum texture size is 16384×16384 pixels due to graphics hardware limitations. + [b]Note:[/b] Mipmap generation can fail with some graphics drivers (especially on Android), resulting in black textures. In these cases, consider either calling [method Image.generate_mipmaps], or creating an [ImageTexture] without [constant Texture.FLAG_MIPMAPS]. $DOCS_URL/tutorials/assets_pipeline/importing_images.html