浏览代码

Docs: Improve InstancedMesh page.

Mugen87 5 年之前
父节点
当前提交
bae78dc7a8
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 2 1
      docs/api/en/objects/InstancedMesh.html
  2. 3 1
      docs/api/zh/objects/InstancedMesh.html

+ 2 - 1
docs/api/en/objects/InstancedMesh.html

@@ -54,7 +54,8 @@
 
 		<h3>[property:BufferAttribute instanceMatrix]</h3>
 		<p>
-			Represents the local transformation of all instances. For internal use only.
+			Represents the local transformation of all instances.
+			You have to set its [page:BufferAttribute.needsUpdate needsUpdate] flag to true if you modify instanced data via [page:.setMatrixAt]().
 		</p>
 
 		<h2>Methods</h2>

+ 3 - 1
docs/api/zh/objects/InstancedMesh.html

@@ -54,9 +54,11 @@
 
 		<h3>[property:BufferAttribute instanceMatrix]</h3>
 		<p>
-			Represents the local transformation of all instances. For internal use only.
+			Represents the local transformation of all instances.
+			You have to set its [page:BufferAttribute.needsUpdate needsUpdate] flag to true if you modify instanced data via [page:.setMatrixAt]().
 		</p>
 
+
 		<h2>Methods</h2>
 		<p>See the base [page:Mesh] class for common methods.</p>