Browse Source

Docs: Clean up.

Mugen87 5 năm trước cách đây
mục cha
commit
881a44f9c1

+ 7 - 1
docs/api/en/textures/DataTexture2DArray.html

@@ -12,7 +12,7 @@
 
 		<h1>[name]</h1>
 
-		<p class="desc">Creates an array of textures directly from raw data, width and height and depth.</p>
+		<p class="desc">Creates an array of textures directly from raw data, width and height and depth. This type of texture can only be used with a WebGL 2 rendering context.</p>
 
 
 		<h2>Constructor</h2>
@@ -68,6 +68,12 @@
 		texture.type = THREE.UnsignedByteType;
 		</code>
 
+		<h2>Examples</h2>
+
+		<p>
+			[example:webgl2_materials_texture2darray WebGL2 / materials / texture2darray]
+		</p>
+
 		<h2>Properties</h2>
 
 		<p>

+ 1 - 2
docs/api/en/textures/DataTexture3D.html

@@ -30,8 +30,7 @@
 		<h2>Examples</h2>
 
 		<p>
-			[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]<br />
-			[example:webgl2_materials_texture2darray WebGL2 / materials / texture2darray]
+			[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
 		</p>
 
 		<h2>Properties</h2>

+ 5 - 1
docs/api/zh/textures/DataTexture2DArray.html

@@ -12,7 +12,7 @@
 
 		<h1>[name]</h1>
 
-		<p class="desc">Creates an array of textures directly from raw data, width and height and depth.</p>
+		<p class="desc">Creates an array of textures directly from raw data, width and height and depth. This type of texture can only be used with a WebGL 2 rendering context.</p>
 
 
 		<h2>Constructor</h2>
@@ -68,6 +68,10 @@
 		texture.type = THREE.UnsignedByteType;
 		</code>
 
+		<p>
+			[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
+		</p>
+
 		<h2>Properties</h2>
 
 		<p>

+ 1 - 2
docs/api/zh/textures/DataTexture3D.html

@@ -30,8 +30,7 @@
 		<h2>例子</h2>
 
 		<p>
-			[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]<br />
-			[example:webgl2_materials_texture2darray WebGL2 / materials / texture2darray]
+			[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
 		</p>
 
 		<h2>属性</h2>