Texture

DataTexture3D

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

Constructor

DataTexture3D(data : TypedArray, width : Number, height : Number, depth : Number)

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

Example

WebGL2 / materials / texture3d
WebGL2 / materials / texture3d / volume

Properties

See the base Texture class for common properties.

.wrapR : number

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.

Source

For more info on how to obtain the source code of this module see this page.