Table of Contents

Class ImageTexture3D

Texture with 3 dimensions.

Inheritance
ImageTexture3D

Remarks

ImageTexture3D is a 3-dimensional ImageTexture that has a width, height, and depth. See also ImageTextureLayered.

3D textures are typically used to store density maps for FogMaterial, color correction LUTs for Environment, vector fields for GPUParticlesAttractorVectorField3D and collision maps for GPUParticlesCollisionSDF3D. 3D textures can also be used in custom shaders.

Methods

create(int, int, int, int, bool, Image[])

Creates the ImageTexture3D with specified width, height, and depth. See Format for format options. If use_mipmaps is true, then generate mipmaps for the ImageTexture3D.

int create(int format, int width, int height, int depth, bool use_mipmaps, Image[] data)

Parameters

format int
width int
height int
depth int
use_mipmaps bool
data Image[]

update(Image[])

Replaces the texture's existing data with the layers specified in data. The size of data must match the parameters that were used for ImageTexture3D.create. In other words, the texture cannot be resized or have its format changed by calling ImageTexture3D.update.

void update(Image[] data)

Parameters

data Image[]