Skip to content

Commit feb480a

Browse files
authored
Merge pull request #15051 from Mugen87/dev2
Docs: Added DataTexture3D page
2 parents 0d6fa84 + f954a2d commit feb480a

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
[page:Texture] &rarr;
12+
13+
<h1>[name]</h1>
14+
15+
<p class="desc">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>
16+
17+
<h2>Constructor</h2>
18+
19+
<h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
20+
<p>
21+
[page:Object data] -- data of the texture.<br />
22+
23+
[page:Number width] -- width of the texture.<br />
24+
25+
[page:Number height] -- height of the texture.<br />
26+
27+
[page:Number depth] -- depth of the texture.
28+
</p>
29+
30+
<h2>Example</h2>
31+
32+
<div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
33+
<div>[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]</div>
34+
35+
<h2>Properties</h2>
36+
37+
<p>
38+
See the base [page:Texture Texture] class for common properties.
39+
</p>
40+
41+
<h2>Methods</h2>
42+
43+
<p>
44+
See the base [page:Texture Texture] class for common methods.
45+
</p>
46+
47+
<h2>Source</h2>
48+
49+
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
50+
</body>
51+
</html>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
[page:Texture] &rarr;
12+
13+
<h1>[name]</h1>
14+
15+
<p class="desc">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>
16+
17+
<h2>Constructor</h2>
18+
19+
<h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
20+
<p>
21+
[page:Object data] -- data of the texture.<br />
22+
23+
[page:Number width] -- width of the texture.<br />
24+
25+
[page:Number height] -- height of the texture.<br />
26+
27+
[page:Number depth] -- depth of the texture.
28+
</p>
29+
30+
<h2>Example</h2>
31+
32+
<div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
33+
<div>[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]</div>
34+
35+
<h2>Properties</h2>
36+
37+
<p>
38+
See the base [page:Texture Texture] class for common properties.
39+
</p>
40+
41+
<h2>Methods</h2>
42+
43+
<p>
44+
See the base [page:Texture Texture] class for common methods.
45+
</p>
46+
47+
<h2>Source</h2>
48+
49+
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
50+
</body>
51+
</html>

docs/list.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ var list = {
332332
"CompressedTexture": "api/en/textures/CompressedTexture",
333333
"CubeTexture": "api/en/textures/CubeTexture",
334334
"DataTexture": "api/en/textures/DataTexture",
335+
"DataTexture3D": "api/en/textures/DataTexture3D",
335336
"DepthTexture": "api/en/textures/DepthTexture",
336337
"Texture": "api/en/textures/Texture",
337338
"VideoTexture": "api/en/textures/VideoTexture"
@@ -756,6 +757,7 @@ var list = {
756757
"CompressedTexture": "api/zh/textures/CompressedTexture",
757758
"CubeTexture": "api/zh/textures/CubeTexture",
758759
"DataTexture": "api/zh/textures/DataTexture",
760+
"DataTexture3D": "api/en/textures/DataTexture3D",
759761
"DepthTexture": "api/zh/textures/DepthTexture",
760762
"Texture": "api/zh/textures/Texture",
761763
"VideoTexture": "api/zh/textures/VideoTexture"

0 commit comments

Comments
 (0)