UNPKG

three

Version:

JavaScript 3D library

29 lines (21 loc) 758 B
import { Geometry } from './../core/Geometry'; import { BufferGeometry } from '../core/BufferGeometry'; import { Material } from './../materials/Material'; import { BufferAttribute } from './../core/BufferAttribute'; import { Mesh } from './Mesh'; import { Matrix4 } from './../math/Matrix4'; export class InstancedMesh < TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry, TMaterial extends Material | Material[] = Material | Material[] > extends Mesh { constructor( geometry: TGeometry, material: TMaterial, count: number ); count: number; instanceMatrix: BufferAttribute; readonly isInstancedMesh: true; getMatrixAt( index: number, matrix: Matrix4 ): void; setMatrixAt( index: number, matrix: Matrix4 ): void; }