ImageTexture3D
继承: Texture3D
< Texture
< Resource
< RefCounted
< Object
Texture with 3 dimensions.
描述
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.
方法
Error | create ( format: Format, width: int , height: int , depth: int , use_mipmaps: bool , data: Array Image ) |
void | update ( data: Array Image ) |
方法说明
Error create ( format: Format, width: int
, height: int
, depth: int
, use_mipmaps: bool
, data: Array 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.
void
update ( data: 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
. In other words, the texture cannot be resized or have its format changed by calling update
.
本方法通常需要用户覆盖才能生效。
本方法无副作用,不会修改该实例的任何成员变量。
本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。
本方法用于构造某个类型。
调用本方法无需实例,可直接使用类名进行调用。
本方法描述的是使用本类型作为左操作数的有效运算符。
这个值是由下列位标志构成位掩码的整数。
无返回值。