Skip to content

Commit

Permalink
Merge pull request #15051 from Mugen87/dev2
Browse files Browse the repository at this point in the history
Docs: Added DataTexture3D page
  • Loading branch information
mrdoob authored Oct 14, 2018
2 parents 0d6fa84 + f954a2d commit feb480a
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/api/en/textures/DataTexture3D.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Texture] &rarr;

<h1>[name]</h1>

<p class="desc">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>

<h2>Constructor</h2>

<h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
<p>
[page:Object data] -- data of the texture.<br />

[page:Number width] -- width of the texture.<br />

[page:Number height] -- height of the texture.<br />

[page:Number depth] -- depth of the texture.
</p>

<h2>Example</h2>

<div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
<div>[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]</div>

<h2>Properties</h2>

<p>
See the base [page:Texture Texture] class for common properties.
</p>

<h2>Methods</h2>

<p>
See the base [page:Texture Texture] class for common methods.
</p>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
51 changes: 51 additions & 0 deletions docs/api/zh/textures/DataTexture3D.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Texture] &rarr;

<h1>[name]</h1>

<p class="desc">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>

<h2>Constructor</h2>

<h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
<p>
[page:Object data] -- data of the texture.<br />

[page:Number width] -- width of the texture.<br />

[page:Number height] -- height of the texture.<br />

[page:Number depth] -- depth of the texture.
</p>

<h2>Example</h2>

<div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
<div>[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]</div>

<h2>Properties</h2>

<p>
See the base [page:Texture Texture] class for common properties.
</p>

<h2>Methods</h2>

<p>
See the base [page:Texture Texture] class for common methods.
</p>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</body>
</html>
2 changes: 2 additions & 0 deletions docs/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit feb480a

Please sign in to comment.