提交 35ab8eba 编写于 作者: M Mugen87

TS: Added InstancedMesh.d.ts.

上级 9b36c7a5
......@@ -12,6 +12,7 @@ export * from './scenes/Fog';
export * from './scenes/Scene';
export * from './objects/Sprite';
export * from './objects/LOD';
export * from './objects/InstancedMesh';
export * from './objects/SkinnedMesh';
export * from './objects/Skeleton';
export * from './objects/Bone';
......
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;
}
......@@ -13,6 +13,8 @@ function InstancedMesh( geometry, material, count ) {
this.count = count;
this.type = 'InstancedMesh';
}
InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册