* add `count` * add `count`
@@ -94,6 +94,15 @@ class Mesh extends Object3D {
*/
this.morphTargetInfluences = undefined;
+ /**
+ * The number of instances of this mesh.
+ * Can only be used with {@link WebGPURenderer}.
+ *
+ * @type {number}
+ * @default 1
+ */
+ this.count = 1;
+
this.updateMorphTargets();
}
@@ -108,6 +108,15 @@ class Sprite extends Object3D {
this.center = new Vector2( 0.5, 0.5 );
+ * The number of instances of this sprite.
/**