Data3DTexture - Verge3D 用户手册 - Soft8Soft
Description: 了解如何在使用 Verge3D 制作的交互式 3D 应用程序中使用 Data3DTexture

Texture →

# Data3DTexture

Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.

## Constructor

### Data3DTexture(data : TypedArray, width : Integer, height : Integer, depth : Integer)

- data — data of the texture.
- width — width of the texture.
- height — height of the texture.
- depth — depth of the texture.

## Properties

See the base Texture class for common properties.

### # .wrapR : Constant

This defines how the texture is wrapped in the depth direction.

The default is v3d.ClampToEdgeWrapping, where the edge is clamped to the outer edge texels. The other two choices are v3d.RepeatWrapping and v3d.MirroredRepeatWrapping. See the texture constants page for details.

## Methods

See the base Texture class for common methods.

## 源代码

关于如何获取此模块的源代码，请查看 本页。