Table of Contents

Class ImageTexture3D

Namespace
Godot
Assembly
GodotSharp.dll

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.

public class ImageTexture3D : Texture3D, IDisposable
Inheritance
ImageTexture3D
Implements
Inherited Members

Constructors

ImageTexture3D()

public ImageTexture3D()

Properties

_Images

public Array<Image> _Images { get; set; }

Property Value

Array<Image>

Methods

Create(Format, int, int, int, bool, Array<Image>)

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

public Error Create(Image.Format format, int width, int height, int depth, bool useMipmaps, Array<Image> data)

Parameters

format Image.Format
width int
height int
depth int
useMipmaps bool
data Array<Image>

Returns

Error

HasGodotClassMethod(in godot_string_name)

Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.

protected override bool HasGodotClassMethod(in godot_string_name method)

Parameters

method godot_string_name

Name of the method to check for.

Returns

bool

HasGodotClassSignal(in godot_string_name)

Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.

protected override bool HasGodotClassSignal(in godot_string_name signal)

Parameters

signal godot_string_name

Name of the signal to check for.

Returns

bool

InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)

Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.

protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)

Parameters

method godot_string_name

Name of the method to invoke.

args NativeVariantPtrArgs

Arguments to use with the invoked method.

ret godot_variant

Value returned by the invoked method.

Returns

bool

Update(Array<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 Create(Format, int, int, int, bool, Array<Image>). In other words, the texture cannot be resized or have its format changed by calling Update(Array<Image>).

public void Update(Array<Image> data)

Parameters

data Array<Image>