|
@@ -0,0 +1,23 @@
|
|
|
+import { Geometry } from './../core/Geometry';
|
|
|
+import { BufferGeometry } from '../core/BufferGeometry';
|
|
|
+import { Material } from './../materials/Material';
|
|
|
+import { BufferAttribute } from './../core/BufferAttribute.js';
|
|
|
+import { Mesh } from './Mesh';
|
|
|
+import { Matrix4 } from './../math/Matrix4';
|
|
|
+
|
|
|
+export class InstancedMesh extends Mesh {
|
|
|
+
|
|
|
+ constructor(
|
|
|
+ geometry: Geometry | BufferGeometry,
|
|
|
+ material: Material | Material[],
|
|
|
+ count: number
|
|
|
+ );
|
|
|
+
|
|
|
+ count: number;
|
|
|
+ instanceMatrix: BufferAttribute;
|
|
|
+ isInstancedMesh: true;
|
|
|
+ type: 'InstancedMesh';
|
|
|
+
|
|
|
+ setMatrixAt( index: number, matrix: Matrix4 ): void;
|
|
|
+
|
|
|
+}
|