diff --git a/docs/api/en/textures/DataTexture3D.html b/docs/api/en/textures/DataTexture3D.html new file mode 100644 index 00000000000000..9282d671931d10 --- /dev/null +++ b/docs/api/en/textures/DataTexture3D.html @@ -0,0 +1,51 @@ + + + + + + + + + + + [page:Texture] → + +

[name]

+ +

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

+ +

Constructor

+ +

[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )

+

+ [page:Object data] -- data of the texture.
+ + [page:Number width] -- width of the texture.
+ + [page:Number height] -- height of the texture.
+ + [page:Number depth] -- depth of the texture. +

+ +

Example

+ +
[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
+
[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]
+ +

Properties

+ +

+ See the base [page:Texture Texture] class for common properties. +

+ +

Methods

+ +

+ See the base [page:Texture Texture] class for common methods. +

+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + + diff --git a/docs/api/zh/textures/DataTexture3D.html b/docs/api/zh/textures/DataTexture3D.html new file mode 100644 index 00000000000000..9282d671931d10 --- /dev/null +++ b/docs/api/zh/textures/DataTexture3D.html @@ -0,0 +1,51 @@ + + + + + + + + + + + [page:Texture] → + +

[name]

+ +

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

+ +

Constructor

+ +

[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )

+

+ [page:Object data] -- data of the texture.
+ + [page:Number width] -- width of the texture.
+ + [page:Number height] -- height of the texture.
+ + [page:Number depth] -- depth of the texture. +

+ +

Example

+ +
[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
+
[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]
+ +

Properties

+ +

+ See the base [page:Texture Texture] class for common properties. +

+ +

Methods

+ +

+ See the base [page:Texture Texture] class for common methods. +

+ +

Source

+ + [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] + + diff --git a/docs/list.js b/docs/list.js index 0327f2b077f12f..c0ce3fc38b25cd 100644 --- a/docs/list.js +++ b/docs/list.js @@ -332,6 +332,7 @@ var list = { "CompressedTexture": "api/en/textures/CompressedTexture", "CubeTexture": "api/en/textures/CubeTexture", "DataTexture": "api/en/textures/DataTexture", + "DataTexture3D": "api/en/textures/DataTexture3D", "DepthTexture": "api/en/textures/DepthTexture", "Texture": "api/en/textures/Texture", "VideoTexture": "api/en/textures/VideoTexture" @@ -756,6 +757,7 @@ var list = { "CompressedTexture": "api/zh/textures/CompressedTexture", "CubeTexture": "api/zh/textures/CubeTexture", "DataTexture": "api/zh/textures/DataTexture", + "DataTexture3D": "api/en/textures/DataTexture3D", "DepthTexture": "api/zh/textures/DepthTexture", "Texture": "api/zh/textures/Texture", "VideoTexture": "api/zh/textures/VideoTexture"