Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ResourceImporterSVG
Hérite de : ResourceImporter < RefCounted < Object
Imports an SVG file as an automatically scalable texture for use in UI elements and 2D rendering.
Description
Cet importeur importe des ressources DPITexture. Voir aussi ResourceImporterTexture et ResourceImporterImage.
Propriétés
|
||
|
||
|
||
|
||
|
||
|
Descriptions des propriétés
Échelle de la texture. 1.0 est la taille SVG originale. Des valeurs plus élevées résultent en une image plus grande.
Dictionary color_map = {} 🔗
If set, remaps texture colors according to Color-Color map.
Si true, utilise une compression sans perte pour la source SVG.
bool fix_alpha_border = false 🔗
If true, puts pixels of the same surrounding color in transition from transparent to opaque areas. For textures displayed with bilinear filtering, this helps to reduce the outline effect when exporting images from an image editor.
An alternative to fixing darkened borders with 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 CanvasItemMaterial.BLEND_MODE_PREMULT_ALPHA blend mode on CanvasItems that use this texture. In custom
canvas_itemshaders,render_mode blend_premul_alpha;should be used.In 3D, a BaseMaterial3D will need to be created and configured to use the BaseMaterial3D.BLEND_MODE_PREMULT_ALPHA blend mode on materials that use this texture. In custom
spatialshaders,render_mode blend_premul_alpha;should be used.
Redéfinit la saturation de la texture.