浏览代码

Fis Sprite declaration

zprodev 6 年之前
父节点
当前提交
3a396e22fd
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      src/objects/Sprite.d.ts

+ 6 - 4
src/objects/Sprite.d.ts

@@ -1,18 +1,20 @@
-import { Material } from './../materials/Material';
 import { Vector2 } from './../math/Vector2';
 import { Raycaster } from './../core/Raycaster';
 import { Object3D } from './../core/Object3D';
 import { Intersection } from '../core/Raycaster';
+import { SpriteMaterial } from '../materials/Materials';
+import { BufferGeometry } from '../core/BufferGeometry';
 
 export class Sprite extends Object3D {
-  constructor(material?: Material);
+  constructor(material?: SpriteMaterial);
 
   type: 'Sprite';
   isSprite: true;
 
-  material: Material;
+  geometry: BufferGeometry;
+  material: SpriteMaterial;
   center: Vector2;
 
   raycast(raycaster: Raycaster, intersects: Intersection[]): void;
-  copy(source: this, recursive?: boolean): this;
+  copy(source: this): this;
 }