summaryrefslogtreecommitdiffstats
path: root/doc/classes
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2024-08-01 03:59:49 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2024-08-01 03:59:49 +0200
commite15a62e42c6a6764ee806776f83e815ef56b69ca (patch)
treeaaa4823ca291359a198dc53018fd0318b3ec4d36 /doc/classes
parent3978628c6cc1227250fc6ed45c8d854d24c30c30 (diff)
downloadredot-engine-e15a62e42c6a6764ee806776f83e815ef56b69ca.tar.gz
Document support 3D premultiplied alpha in ResourceImporterTexture
This is supported since Godot 4.3.
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ResourceImporterTexture.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/ResourceImporterTexture.xml b/doc/classes/ResourceImporterTexture.xml
index 678aa2101c..0761702aa1 100644
--- a/doc/classes/ResourceImporterTexture.xml
+++ b/doc/classes/ResourceImporterTexture.xml
@@ -84,8 +84,8 @@
</member>
<member name="process/premult_alpha" type="bool" setter="" getter="" default="false">
An alternative to fixing darkened borders with [member process/fix_alpha_border] is to use premultiplied alpha. By enabling this option, the texture will be converted to this format. A premultiplied alpha texture requires specific materials to be displayed correctly:
- - In 2D, a [CanvasItemMaterial] will need to be created and configured to use the [constant CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA] blend mode on [CanvasItem]s that use this texture.
- - In 3D, there is no support for premultiplied alpha blend mode yet, so this option is only suited for 2D.
+ - In 2D, a [CanvasItemMaterial] will need to be created and configured to use the [constant CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA] blend mode on [CanvasItem]s that use this texture. In custom [code]@canvas_item[/code] shaders, [code]render_mode blend_premul_alpha;[/code] should be used.
+ - In 3D, a [BaseMaterial3D] will need to be created and configured to use the [constant BaseMaterial3D.BLEND_MODE_PREMULT_ALPHA] blend mode on materials that use this texture. In custom [code]spatial[/code] shaders, [code]render_mode blend_premul_alpha;[/code] should be used.
</member>
<member name="process/size_limit" type="int" setter="" getter="" default="0">
If set to a value greater than [code]0[/code], the size of the texture is limited on import to a value smaller than or equal to the value specified here. For non-square textures, the size limit affects the longer dimension, with the shorter dimension scaled to preserve aspect ratio. Resizing is performed using cubic interpolation.