Class Texture3D
Base class for 3-dimensional textures.
- Inheritance
-
Texture3D
- Derived
Remarks
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.
Methods
_get_data
Qualifiers: virtualconst
Called when the Texture3D's data is queried.
Image[] _get_data
_get_depth
Qualifiers: virtualconst
Called when the Texture3D's depth is queried.
int _get_depth
_get_format
Qualifiers: virtualconst
Called when the Texture3D's format is queried.
int _get_format
_get_height
Qualifiers: virtualconst
Called when the Texture3D's height is queried.
int _get_height
_get_width
Qualifiers: virtualconst
Called when the Texture3D's width is queried.
int _get_width
_has_mipmaps
Qualifiers: virtualconst
Called when the presence of mipmaps in the Texture3D is queried.
bool _has_mipmaps
create_placeholder
Qualifiers: const
Creates a placeholder version of this resource (PlaceholderTexture3D).
Resource create_placeholder
get_data
Qualifiers: 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.
Image[] get_data
get_depth
Qualifiers: const
Returns the Texture3D's depth in pixels. Depth is typically represented by the Z axis (a dimension not present in Texture2D).
int get_depth
get_format
Qualifiers: const
Returns the current format being used by this texture. See Format for details.
int get_format
get_height
Qualifiers: const
Returns the Texture3D's height in pixels. Width is typically represented by the Y axis.
int get_height
get_width
Qualifiers: const
Returns the Texture3D's width in pixels. Width is typically represented by the X axis.
int get_width
has_mipmaps
Qualifiers: const
Returns true
if the Texture3D has generated mipmaps.
bool has_mipmaps