Inherits: Texture < Resource < RefCounted < Object
Inherited By: CompressedTexture3D, ImageTexture3D, NoiseTexture3D, PlaceholderTexture3D, Texture3DRD
Base class for 3-dimensional textures.
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.
_get_data ( ) virtual const | |
_get_depth ( ) virtual const | |
_get_format ( ) virtual const | |
_get_height ( ) virtual const | |
_get_width ( ) virtual const | |
_has_mipmaps ( ) virtual const | |
create_placeholder ( ) const | |
get_data ( ) const | |
get_depth ( ) const | |
get_format ( ) const | |
get_height ( ) const | |
get_width ( ) const | |
has_mipmaps ( ) const |
Called when the Texture3D's data is queried.
Called when the Texture3D's depth is queried.
Called when the Texture3D's format is queried.
Called when the Texture3D's height is queried.
Called when the Texture3D's width is queried.
Called when the presence of mipmaps in the Texture3D is queried.
Creates a placeholder version of this resource (PlaceholderTexture3D).
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. See Format for details.
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.
Returns true if the Texture3D has generated mipmaps.
© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_texture3d.html