You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/engine/Source/Scene/Model/ModelInstanceCollection.js
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,10 @@ import ModelInstance from "./ModelInstance.js";
7
7
* A collection of {@link ModelInstance} used for rendering multiple copies of a {@link Model} mesh with GPU instancing. Instancing is useful for efficiently rendering a large number of the same model, such as trees in a forest or vehicles in a parking lot.
8
8
* Instances are added and removed from the collection using {@link ModelInstanceCollection#add}
9
9
* and {@link ModelInstanceCollection#remove}.
10
+
*
11
+
* @param {object} options An object containing the following options
12
+
* @param {ModelInstance[]} [options.instances] The API-level model instances
13
+
*
10
14
* @alias ModelInstanceCollection
11
15
* @constructor
12
16
*
@@ -41,9 +45,11 @@ import ModelInstance from "./ModelInstance.js";
0 commit comments