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...
Texture3D
Hérite de : Texture < Resource < RefCounted < Object
Hérité par : CompressedTexture3D, ImageTexture3D, NoiseTexture3D, PlaceholderTexture3D, Texture3DRD
Base class for 3-dimensional textures.
Description
Base class for ImageTexture3D and CompressedTexture3D. Cannot be used directly, but contains all the functions necessary for accessing the derived resource types. Texture3D is the base class for all 3-dimensional texture types. See also TextureLayered.
All images need to have the same width, height and number of mipmap levels.
To create such a texture file yourself, reimport your image files using the Godot Editor import presets.
Méthodes
_get_data() virtual required const |
|
_get_depth() virtual required const |
|
_get_format() virtual required const |
|
_get_height() virtual required const |
|
_get_width() virtual required const |
|
_has_mipmaps() virtual required const |
|
create_placeholder() const |
|
get_data() const |
|
get_depth() const |
|
get_format() const |
|
get_height() const |
|
get_width() const |
|
has_mipmaps() const |
Descriptions des méthodes
Array[Image] _get_data() virtual required const 🔗
Appelée quand les données de la Texture3D sont demandées.
int _get_depth() virtual required const 🔗
Appelée quand la profondeur de la Texture3D est demandée.
Format _get_format() virtual required const 🔗
Appelée quand le format de la Texture3D est demandé.
int _get_height() virtual required const 🔗
Appelée quand la hauteur de la Texture3D est demandée.
int _get_width() virtual required const 🔗
Appelée quand la largeur de la Texture3D est demandée.
bool _has_mipmaps() virtual required const 🔗
Called when the presence of mipmaps in the Texture3D is queried.
Resource create_placeholder() const 🔗
Crée une version placeholder de cette ressource (PlaceholderTexture3D).
Array[Image] get_data() const 🔗
Returns the Texture3D's data as an array of Images. Each Image represents a slice of the Texture3D, with different slices mapping to different depth (Z axis) levels.
Returns the Texture3D's depth in pixels. Depth is typically represented by the Z axis (a dimension not present in Texture2D).
Returns the current format being used by this texture.
Returns the Texture3D's height in pixels. Width is typically represented by the Y axis.
Returns the Texture3D's width in pixels. Width is typically represented by the X axis.
Renvoie true si la Texture3D a des mipmaps générées.