2
0
Эх сурвалжийг харах

Docs: Clarify BufferGeometry.groups. (#23740)

* Docs: Clarify BufferGeometry.groups.

* Docs: More updates to BufferGeometry.groups.

* Docs: Improve BufferGeometry.groups description.
Michael Herzog 3 жил өмнө
parent
commit
5b5d64f78d

+ 4 - 2
docs/api/en/core/BufferGeometry.html

@@ -92,7 +92,7 @@
 		<h3>[property:Array groups]</h3>
 		<h3>[property:Array groups]</h3>
 		<p>
 		<p>
 			Split the geometry into groups, each of which will be rendered in a separate WebGL draw call.
 			Split the geometry into groups, each of which will be rendered in a separate WebGL draw call.
-			This allows an array of materials to be used with the bufferGeometry.<br /><br />
+			This allows an array of materials to be used with the geometry.<br /><br />
 
 
 			Each group is an object of the form:
 			Each group is an object of the form:
 			<code>{ start: Integer, count: Integer, materialIndex: Integer }</code>
 			<code>{ start: Integer, count: Integer, materialIndex: Integer }</code>
@@ -100,7 +100,9 @@
 			otherwise the first triangle index. Count specifies how many vertices (or indices) are included, and
 			otherwise the first triangle index. Count specifies how many vertices (or indices) are included, and
 			materialIndex specifies the material array index to use.<br /><br />
 			materialIndex specifies the material array index to use.<br /><br />
 
 
-			Use [page:.addGroup] to add groups, rather than modifying this array directly.
+			Use [page:.addGroup] to add groups, rather than modifying this array directly.<br /><br />
+
+			Every vertex and index must belong to exactly one group — groups must not share vertices or indices, and must not leave vertices or indices unused.
 		</p>
 		</p>