Ver Fonte

Merge pull request #20107 from Mugen87/dev46

Docs: Improve DepthTexture page.
Mr.doob há 5 anos atrás
pai
commit
5a8c62fe37

+ 5 - 5
docs/api/en/textures/DepthTexture.html

@@ -13,8 +13,8 @@
 		<h1>[name]</h1>
 
 		<p class="desc">
-		Creates a texture for use as a Depth Texture. Require support for the
-	[link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture] extension.
+		This class can be used to automatically save the depth information of a rendering into a texture.
+		When using a WebGL 1 rendering context, [name] requires support for the [link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture] extension.
 		</p>
 
 		<h2>Examples</h2>
@@ -31,11 +31,11 @@
 
 		[page:Number height] -- height of the texture.<br />
 
-		[page:Constant type] -- Default is [page:Textures THREE.UnsignedShortType].
+		[page:Constant type] -- Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using  [page:Textures DepthStencilFormat].
 		See [page:Textures type constants] for other choices.<br />
 
 		[page:Constant mapping] --
-		See [page:Textures type constants] for details.<br />
+		See [page:Textures mapping mode constants] for details.<br />
 
 		[page:Constant wrapS] -- The default is [page:Textures THREE.ClampToEdgeWrapping].
 		See [page:Textures wrap mode constants] for other choices.<br />
@@ -73,7 +73,7 @@
 
 		<h3>[page:Texture.type .type]</h3>
 		<p>
-		Default is [page:Textures THREE.UnsignedShortType].
+		Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using [page:Textures DepthStencilFormat].
 		See [page:Textures format constants] for details.<br />
 		</p>
 

+ 5 - 4
docs/api/zh/textures/DepthTexture.html

@@ -13,7 +13,8 @@
 		<h1>深度纹理([name])</h1>
 
 		<p class="desc">
-		创建一个作为深度纹理贴图来使用的纹理。需要支持[link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture]扩展。
+		This class can be used to automatically save the depth information of a rendering into a texture.
+		When using a WebGL 1 rendering context, [name] requires support for the [link:https://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ WEBGL_depth_texture] extension.
 		</p>
 
 		<h2>例子</h2>
@@ -29,11 +30,11 @@
 
 		[page:Number height] -- 纹理的高度。<br />
 
-		[page:Constant type] -- 默认值是[page:Textures THREE.UnsignedShortType]。
+		[page:Constant type] -- Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using  [page:Textures DepthStencilFormat].
 		请参阅[page:Textures type constants](类型常量)来了解其他选项。<br />
 
 		[page:Constant mapping] --
-		请参阅[page:Textures mapping constants](映射模式常量)来了解其他选项。<br />
+		请参阅[page:Textures mapping mode constants](映射模式常量)来了解其他选项。<br />
 
 		[page:Constant wrapS] -- 默认值是[page:Textures THREE.ClampToEdgeWrapping].
 		请参阅[page:Textures wrap mode constants](包裹模式常量)来了解其他选项。<br />
@@ -71,7 +72,7 @@
 
 		<h3>[page:Texture.type .type]</h3>
 		<p>
-		默认值是[page:Textures THREE.UnsignedShortType]。
+		Default is [page:Textures THREE.UnsignedShortType] when unsing [page:Textures DepthFormat] and [page:Textures THREE.UnsignedInt248Type] when using [page:Textures DepthStencilFormat].
 		请参阅[page:Textures format constants]来了解详细信息。<br />
 		</p>