Просмотр исходного кода

Modify and add Chinese translations (#30475)

haiyoucuv 1 год назад
Родитель
Сommit
f35ec72554
44 измененных файлов с 78 добавлено и 81 удалено
  1. 1 1
      docs/api/zh/cameras/ArrayCamera.html
  2. 1 1
      docs/api/zh/cameras/Camera.html
  3. 1 1
      docs/api/zh/cameras/OrthographicCamera.html
  4. 1 1
      docs/api/zh/core/InstancedBufferGeometry.html
  5. 1 1
      docs/api/zh/core/InterleavedBufferAttribute.html
  6. 1 1
      docs/api/zh/lights/shadows/DirectionalLightShadow.html
  7. 1 1
      docs/api/zh/lights/shadows/PointLightShadow.html
  8. 1 1
      docs/api/zh/lights/shadows/SpotLightShadow.html
  9. 1 1
      docs/api/zh/loaders/ImageBitmapLoader.html
  10. 1 1
      docs/api/zh/materials/LineBasicMaterial.html
  11. 1 1
      docs/api/zh/materials/Material.html
  12. 1 1
      docs/api/zh/math/Box3.html
  13. 1 1
      docs/api/zh/math/Color.html
  14. 1 1
      docs/api/zh/math/Euler.html
  15. 1 1
      docs/api/zh/math/Plane.html
  16. 1 1
      docs/api/zh/math/Quaternion.html
  17. 1 1
      docs/api/zh/math/Sphere.html
  18. 1 1
      docs/api/zh/math/Vector2.html
  19. 1 1
      docs/api/zh/math/Vector3.html
  20. 1 1
      docs/api/zh/math/Vector4.html
  21. 1 1
      docs/api/zh/objects/Bone.html
  22. 1 1
      docs/api/zh/objects/Group.html
  23. 1 1
      docs/api/zh/objects/LOD.html
  24. 1 1
      docs/api/zh/objects/Line.html
  25. 1 1
      docs/api/zh/objects/LineLoop.html
  26. 1 1
      docs/api/zh/objects/LineSegments.html
  27. 1 1
      docs/api/zh/objects/Mesh.html
  28. 1 1
      docs/api/zh/objects/Points.html
  29. 1 1
      docs/api/zh/objects/SkinnedMesh.html
  30. 1 1
      docs/api/zh/objects/Sprite.html
  31. 9 9
      docs/api/zh/renderers/WebGLRenderTarget.html
  32. 1 1
      docs/api/zh/scenes/Fog.html
  33. 1 1
      docs/api/zh/scenes/FogExp2.html
  34. 1 1
      docs/api/zh/textures/CanvasTexture.html
  35. 1 1
      docs/api/zh/textures/CompressedTexture.html
  36. 4 4
      docs/api/zh/textures/CubeTexture.html
  37. 1 1
      docs/api/zh/textures/DataTexture.html
  38. 1 1
      docs/api/zh/textures/DepthTexture.html
  39. 1 1
      docs/api/zh/textures/Source.html
  40. 3 2
      docs/api/zh/textures/Texture.html
  41. 1 1
      docs/api/zh/textures/VideoTexture.html
  42. 5 5
      docs/examples/zh/loaders/MTLLoader.html
  43. 2 2
      docs/examples/zh/postprocessing/EffectComposer.html
  44. 17 21
      docs/examples/zh/utils/SceneUtils.html

+ 1 - 1
docs/api/zh/cameras/ArrayCamera.html

@@ -39,7 +39,7 @@
 
 		<h3>[property:Boolean isArrayCamera]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/cameras/Camera.html

@@ -34,7 +34,7 @@
 
 		<h3>[property:Boolean isCamera]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Layers layers]</h3>

+ 1 - 1
docs/api/zh/cameras/OrthographicCamera.html

@@ -78,7 +78,7 @@
 
 		<h3>[property:Boolean isOrthographicCamera]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float left]</h3>

+ 1 - 1
docs/api/zh/core/InstancedBufferGeometry.html

@@ -30,7 +30,7 @@
 
 		<h3>[property:Boolean isInstancedBufferGeometry]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/core/InterleavedBufferAttribute.html

@@ -40,7 +40,7 @@
 
 		<h3>[property:Boolean isInterleavedBufferAttribute]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Integer itemSize]</h3>

+ 1 - 1
docs/api/zh/lights/shadows/DirectionalLightShadow.html

@@ -75,7 +75,7 @@
 
 		<h3>[property:Boolean isDirectionalLightShadow]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/lights/shadows/PointLightShadow.html

@@ -69,7 +69,7 @@
 
 		<h3>[property:Boolean isPointLightShadow]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/lights/shadows/SpotLightShadow.html

@@ -75,7 +75,7 @@
 
 		<h3>[property:Boolean isSpotLightShadow]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/loaders/ImageBitmapLoader.html

@@ -71,7 +71,7 @@
 
 		<h3>[property:Boolean isImageBitmapLoader]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 1 - 1
docs/api/zh/materials/LineBasicMaterial.html

@@ -79,7 +79,7 @@
 
 		<h3>[property:Texture map]</h3>
 		<p>
-			Sets the color of the lines using data from a [page:Texture].
+            将[page:Texture]的颜色映射到线条上。
 		</p>
 
 		<h2>方法(Methods)</h2>

+ 1 - 1
docs/api/zh/materials/Material.html

@@ -313,7 +313,7 @@
 和其他属性不一样的是,这个回调在[page:Material.clone .clone](),[page:Material.copy .copy]() 和 [page:Material.toJSON .toJSON]() 中不支持。
 </p>
 <p>
-	This callback is only supported in `WebGLRenderer` (not `WebGPURenderer`). 
+    这个回调只支持在 `WebGLRenderer` (不支持 `WebGPURenderer`)。
 </p>
 <p>
   [example:webgl_materials_modified WebGL / materials / modified]<br />

+ 1 - 1
docs/api/zh/math/Box3.html

@@ -51,7 +51,7 @@
 
 		<h3>[property:Boolean isBox3]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Vector3 min]</h3>

+ 1 - 1
docs/api/zh/math/Color.html

@@ -79,7 +79,7 @@
 
 		<h3>[property:Boolean isColor]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float r]</h3>

+ 1 - 1
docs/api/zh/math/Euler.html

@@ -44,7 +44,7 @@
 
 		<h3>[property:Boolean isEuler]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:String order]</h3>

+ 1 - 1
docs/api/zh/math/Plane.html

@@ -28,7 +28,7 @@
 
 		<h3>[property:Boolean isPlane]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Vector3 normal]</h3>

+ 1 - 1
docs/api/zh/math/Quaternion.html

@@ -49,7 +49,7 @@
 
 		<h3>[property:Boolean isQuaternion]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float x]</h3>

+ 1 - 1
docs/api/zh/math/Sphere.html

@@ -30,7 +30,7 @@
 
 		<h3>[property:Boolean isSphere]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float radius]</h3>

+ 1 - 1
docs/api/zh/math/Vector2.html

@@ -67,7 +67,7 @@
 
 		<h3>[property:Boolean isVector2]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float width]</h3>

+ 1 - 1
docs/api/zh/math/Vector3.html

@@ -66,7 +66,7 @@
 
 		<h3>[property:Boolean isVector3]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float x]</h3>

+ 1 - 1
docs/api/zh/math/Vector4.html

@@ -66,7 +66,7 @@
 
 		<h3>[property:Boolean isVector4]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Float x]</h3>

+ 1 - 1
docs/api/zh/objects/Bone.html

@@ -38,7 +38,7 @@
 
 		<h3>[property:Boolean isBone]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 1 - 1
docs/api/zh/objects/Group.html

@@ -46,7 +46,7 @@
 
 		<h3>[property:Boolean isGroup]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:String type]</h3>

+ 1 - 1
docs/api/zh/objects/LOD.html

@@ -61,7 +61,7 @@
 
 		<h3>[property:Boolean isLOD]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Array levels]</h3>

+ 1 - 1
docs/api/zh/objects/Line.html

@@ -55,7 +55,7 @@
 
 		<h3>[property:Boolean isLine]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Material material]</h3>

+ 1 - 1
docs/api/zh/objects/LineLoop.html

@@ -33,7 +33,7 @@
 
 		<h3>[property:Boolean isLineLoop]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 1 - 1
docs/api/zh/objects/LineSegments.html

@@ -32,7 +32,7 @@
 
 		<h3>[property:Boolean isLineSegments]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 1 - 1
docs/api/zh/objects/Mesh.html

@@ -46,7 +46,7 @@
 
 		<h3>[property:Boolean isMesh]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Material material]</h3>

+ 1 - 1
docs/api/zh/objects/Points.html

@@ -40,7 +40,7 @@
 
 		<h3>[property:Boolean isPoints]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 	<h3>[property:Material material]</h3>

+ 1 - 1
docs/api/zh/objects/SkinnedMesh.html

@@ -126,7 +126,7 @@
 
 		<h3>[property:Boolean isSkinnedMesh]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Skeleton skeleton]</h3>

+ 1 - 1
docs/api/zh/objects/Sprite.html

@@ -42,7 +42,7 @@
 
 		<h3>[property:Boolean isSprite]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 9 - 9
docs/api/zh/renderers/WebGLRenderTarget.html

@@ -51,7 +51,7 @@
 
 		<h3>[property:Boolean isWebGLRenderTarget]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:number width]</h3>
@@ -86,8 +86,8 @@
 
 		<h3>[property:Texture textures]</h3>
 		<p>
-			An array holding the [page:WebGLRenderTarget.texture texture] references
-			of multiple render targets configured with the [page:Number count] option.
+            使用数组来存放[page:WebGLRenderTarget.texture texture] 的引用
+            来配置的多个渲染目标
 		</p>
 
 		<h3>[property:Boolean depthBuffer]</h3>
@@ -102,14 +102,14 @@
 
 		<h3>[property:Boolean resolveDepthBuffer]</h3>
 		<p>
-			Defines whether the depth buffer should be resolved when rendering into a multisampled render target. 
-			默认为`true`.
-		</p>
+            设置在渲染到多采样渲染目标时是否解析深度缓冲区
+            默认为`true`.
+        </p>
 
 		<h3>[property:Boolean resolveStencilBuffer]</h3>
 		<p>
-			Defines whether the stencil buffer should be resolved when rendering into a multisampled render target. 
-			This property has no effect when [page:.resolveDepthBuffer] is set to `false`. 
+            设置在渲染到多采样渲染目标时是否解析模板缓冲区
+            这个属性在[page:.resolveDepthBuffer]设置为`false`时无效
 			默认为`true`.
 		</p>
 
@@ -120,7 +120,7 @@
 
 		<h3>[property:Number samples]</h3>
 		<p>
-		Defines the count of MSAA samples. Default is *0*.
+        设置渲染目标的MSAA采样值。默认是0.
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/scenes/Fog.html

@@ -29,7 +29,7 @@
 
 		<h3>[property:Boolean isFog]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:String name]</h3>

+ 1 - 1
docs/api/zh/scenes/FogExp2.html

@@ -28,7 +28,7 @@
 
 		<h3>[property:Boolean isFogExp2]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:String name]</h3>

+ 1 - 1
docs/api/zh/textures/CanvasTexture.html

@@ -58,7 +58,7 @@
 
 		<h3>[property:Boolean isCanvasTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Boolean needsUpdate]</h3>

+ 1 - 1
docs/api/zh/textures/CompressedTexture.html

@@ -80,7 +80,7 @@
 
 		<h3>[property:Boolean isCompressedTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 

+ 4 - 4
docs/api/zh/textures/CubeTexture.html

@@ -42,23 +42,23 @@
 		<h2>属性</h2>
 
 		<p>
-		See the base [page:Texture Texture] class for common properties.
+        公共属性请参考[page:Texture Texture]类。
 		</p>
 
 		<h3>[property:Boolean flipY]</h3>
 		<p>
-		If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *false*.
+        如果设置为 *true*,纹理在上传到GPU时会被垂直翻转。默认值为 *false*。
 		</p>
 
 		<h3>[property:Boolean isCubeTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+            只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>
 
 		<p>
-		See the base [page:Texture Texture] class for common methods.
+        公共方法请参考[page:Texture Texture]类。
 		</p>
 
 		<h2>源代码</h2>

+ 1 - 1
docs/api/zh/textures/DataTexture.html

@@ -87,7 +87,7 @@
 
 		<h3>[property:Boolean isDataTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:number unpackAlignment]</h3>

+ 1 - 1
docs/api/zh/textures/DepthTexture.html

@@ -100,7 +100,7 @@
 
 		<h3>[property:Boolean isDepthTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+            只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h2>方法</h2>

+ 1 - 1
docs/api/zh/textures/Source.html

@@ -29,7 +29,7 @@
 
 		<h3>[property:Boolean isCubeTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Boolean needsUpdate]</h3>

+ 3 - 2
docs/api/zh/textures/Texture.html

@@ -35,7 +35,7 @@
 
 		<h3>[property:Boolean isTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+            只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:String uuid]</h3>
@@ -73,7 +73,8 @@
 
 		<h3>[property:Integer channel]</h3>
 		<p>
-		Lets you select the uv attribute to map the texture to. `0` for `uv`, `1` for `uv1`, `2` for `uv2` and `3` for `uv3`.
+        选择uv名来映射纹理。默认值为`0`。
+        `0` 即为 `uv`, `1` 即为 `uv1`, `2` 即为 `uv2` and `3` 即为 `uv3`.
 		</p>
 
 		<h3>[property:number wrapS]</h3>

+ 1 - 1
docs/api/zh/textures/VideoTexture.html

@@ -82,7 +82,7 @@ const texture = new THREE.VideoTexture( video );
 
 		<h3>[property:Boolean isVideoTexture]</h3>
 		<p>
-			Read-only flag to check if a given object is of type [name].
+			只读属性,用于检查给定对象是否为[name]类型。
 		</p>
 
 		<h3>[property:Boolean needsUpdate]</h3>

+ 5 - 5
docs/examples/zh/loaders/MTLLoader.html

@@ -58,11 +58,11 @@
 		<p>
 			[page:Object options] — required
 			<ul>
-				<li>side: Which side to apply the material. THREE.FrontSide (default), THREE.BackSide, THREE.DoubleSide</li>
-				<li>wrap: What type of wrapping to apply for textures. THREE.RepeatWrapping (default), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping</li>
-				<li>normalizeRGB: RGBs need to be normalized to 0-1 from 0-255. Default: false, assumed to be already normalized</li>
-				<li>ignoreZeroRGBs: Ignore values of RGBs (Ka,Kd,Ks) that are all 0's. Default: false</li>
-				<li>invertTrProperty: Use values 1 of Tr field for fully opaque. This option is useful for obj exported from 3ds MAX, vcglib or meshlab. Default: false</li>
+				<li>side: 将要渲染哪一面。 THREE.FrontSide (默认), THREE.BackSide, THREE.DoubleSide</li>
+				<li>wrap: 纹理环绕方式。 THREE.RepeatWrapping (默认), THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping</li>
+				<li>normalizeRGB: RGBs 需要从 0-255 归一化为 0-1 默认: false, 认为已归一化</li>
+				<li>ignoreZeroRGBs: 忽略所有 RGB 值(Ka、Kd、Ks)均为 0 的情况。 默认: false</li>
+				<li>invertTrProperty: Tr字段的值为1表示完全不透明。此选项可用于从3DS Max,VCGLIB或MESHLAB导出的OBJ。 默认: false</li>
 			</ul>
 		</p>
 		<p>

+ 2 - 2
docs/examples/zh/postprocessing/EffectComposer.html

@@ -127,9 +127,9 @@
 		<h3>[method:undefined removePass]( [param:Pass pass] )</h3>
 
 		<p>
-			pass -- The pass to remove from the pass chain.<br /><br />
+			pass -- 要移除的pass。<br /><br />
 
-			Removes the given pass from the pass chain.
+			移除指定的pass。
 		</p>
 
 		<h3>[method:undefined render]( [param:Float deltaTime] )</h3>

+ 17 - 21
docs/examples/zh/utils/SceneUtils.html

@@ -34,16 +34,16 @@
 
 		<h3>[method:Group createMeshesFromMultiMaterialMesh]( [param:Mesh mesh] )</h3>
 		<p>
-		mesh -- A mesh with multiple materials.
+		    mesh -- 具有多种材质的网格。
 		</p>
 		<p>
-		Converts the given multi-material mesh into an instance of [page:Group] holding for each material a separate mesh.
+		为给定的具有多种材质的网格的每个材质,创建一个包含新网格的新物体组[page:Group]。
 		</p>
 
 		<h3>[method:Group createMultiMaterialObject]( [param:BufferGeometry geometry], [param:Array materials] )</h3>
 		<p>
-			geometry -- 材料集的几何形状。 <br />
-			materials -- 为物体准备的材
+			geometry -- 材质集的几何。 <br />
+			materials -- 为物体准备的材
 		</p>
 		<p>
 			创建一个新组,囊括了在材质中定义的每种材质的新网格。请注意,这和为一个网格定义多种材质的材质数组不同。<br />
@@ -52,45 +52,41 @@
 
 		<h3>[method:undefined sortInstancedMesh]( [param:InstancedMesh mesh], [param:Function compareFn] )</h3>
 		<p>
-		mesh -- InstancedMesh in which instances will be sorted. <br />
-		compareFn -- Comparator function defining the sort order.
+		mesh -- InstancedMesh中的实例将呗排序。 <br />
+		compareFn -- 决定排序顺序的比较函数。
 		</p>
 		<p>
-		Sorts the instances within an [page:InstancedMesh], according to a user-defined
-		callback. The callback will be provided with two arguments, <i>indexA</i>
-		and <i>indexB</i>, and must return a numerical value. See
-		[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#description Array.prototype.sort]
-		for more information on sorting callbacks and their return values.
+        根据用户定义的回调函数,对[page:InstancedMesh]中的实例进行排序。
+        回调函数会提供两个参数,<i>indexA</i>和<i>indexB</i>,并且必须返回一个数值。
+        有关排序回调函数的更多信息,请参阅[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#description Array.prototype.sort]
 		</p>
 		<p>
-		Because of the high performance cost, three.js does not sort
-		[page:InstancedMesh] instances automatically. Manually sorting may be
-		helpful to improve display of alpha blended materials (back to front),
-		and to reduce overdraw in opaque materials (front to back).
+        由于性能成本,three.js不会自动对[page:InstancedMesh]实例进行排序。
+        手动排序可能有助于提高透明材质的显示顺序(back to front)和不透明材质的显示顺序(front to back)。
 		</p>
 
 		<h3>[method:Generator traverseGenerator]( [param:Object3D object] )</h3>
 		<p>
-		object -- The 3D object to traverse.
+		    object -- 遍历的对象。
 		</p>
 		<p>
-		A generator based version of [page:Object3D.traverse]().
+            使用generator实现的 [page:Object3D.traverse]().
 		</p>
 
 		<h3>[method:Generator traverseVisibleGenerator]( [param:Object3D object] )</h3>
 		<p>
-		object -- The 3D object to traverse.
+		    object -- 遍历的对象。
 		</p>
 		<p>
-		A generator based version of [page:Object3D.traverseVisible]().
+            使用generator实现的 [page:Object3D.traverseVisible]().
 		</p>
 
 		<h3>[method:Generator traverseAncestorsGenerator]( [param:Object3D object] )</h3>
 		<p>
-		object -- The 3D object to traverse.
+		    object -- 遍历的对象。
 		</p>
 		<p>
-		A generator based version of [page:Object3D.traverseAncestors]().
+		    使用generator实现的 [page:Object3D.traverseAncestors]().
 		</p>
 
 		<h2>源代码</h2>

粤ICP备19079148号