Projector.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import {
  2. Object3D,
  3. Scene,
  4. Camera,
  5. Vector2,
  6. Vector3,
  7. Vector4,
  8. Color,
  9. Material
  10. } from '../../../src/Three';
  11. export class RenderableObject {
  12. id: number;
  13. object: Object3D;
  14. z: number;
  15. renderOrder: number;
  16. }
  17. export class RenderableFace {
  18. id: number;
  19. v1: RenderableVertex;
  20. v2: RenderableVertex;
  21. v3: RenderableVertex;
  22. normalModel: Vector3;
  23. vertexNormalsModel: Vector3[];
  24. vertexNormalsLength: number;
  25. color: Color;
  26. material: Material;
  27. uvs: Vector2[];
  28. z: number;
  29. renderOrder: number;
  30. }
  31. export class RenderableVertex {
  32. position: Vector3;
  33. positionWorld: Vector3;
  34. positionScreen: Vector4;
  35. visible: boolean;
  36. copy( vertex: RenderableVertex ): void;
  37. }
  38. export class RenderableLine {
  39. id: number;
  40. v1: RenderableVertex;
  41. v2: RenderableVertex;
  42. vertexColors: Color[];
  43. material: Material;
  44. z: number;
  45. renderOrder: number;
  46. }
  47. export class RenderableSprite {
  48. id: number;
  49. object: Object3D;
  50. x: number;
  51. y: number;
  52. z: number;
  53. rotation: number;
  54. scale: Vector2;
  55. material: Material;
  56. renderOrder: number;
  57. }
  58. export class Projector {
  59. constructor();
  60. projectScene( scene: Scene, camera: Camera, sortObjects: boolean, sortElements: boolean );
  61. }