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...
ImageTexture3D
Eredita: Texture3D < Texture < Resource < RefCounted < Object
Una texture a 3 dimensioni.
Descrizione
ImageTexture3D è una ImageTexture tridimensionale che ha larghezza, altezza e profondità. Vedi anche ImageTextureLayered.
Le texture 3D sono in genere utilizzate per memorizzare mappe di densità per FogMaterial, LUT di correzione colore per Environment, campi vettoriali per GPUParticlesAttractorVectorField3D e mappe di collisione per GPUParticlesCollisionSDF3D. Le texture 3D possono anche essere utilizzate in shader personalizzati.
Metodi
create(format: Format, width: int, height: int, depth: int, use_mipmaps: bool, data: Array[Image]) |
|
void |
Descrizioni dei metodi
Error create(format: Format, width: int, height: int, depth: int, use_mipmaps: bool, data: Array[Image]) 🔗
Crea l'ImageTexture3D con il formato (format), la larghezza (width), l'altezza (height) e la profondità (depth) specificati. Se use_mipmaps è true, genera mipmap per l'ImageTexture3D.
void update(data: Array[Image]) 🔗
Sostituisce i dati esistenti della texture con i livelli specificati in data. La dimensione di data deve corrispondere ai parametri utilizzati per create(). In altre parole, la texture non può essere ridimensionata o avere il suo formato modificato chiamando update().