Three.Legacy.d.ts 886 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { Geometry } from './core/Geometry';
  2. import { Material } from './materials/Material';
  3. import { Object3D } from './core/Object3D';
  4. import { Scene } from './scenes/Scene';
  5. export namespace SceneUtils {
  6. export function createMultiMaterialObject(
  7. geometry: Geometry,
  8. materials: Material[]
  9. ): Object3D;
  10. export function detach( child: Object3D, parent: Object3D, scene: Scene ): void;
  11. export function attach( child: Object3D, scene: Scene, parent: Object3D ): void;
  12. }
  13. /**
  14. * @deprecated Use an Array instead.
  15. */
  16. export class MultiMaterial extends Material {
  17. constructor( materials?: Material[] );
  18. readonly isMultiMaterial: true;
  19. materials: Material[];
  20. toJSON( meta: any ): any;
  21. }
  22. /**
  23. * @deprecated Material.vertexColors is now a boolean.
  24. */
  25. export enum Colors {}
  26. export const NoColors: Colors;
  27. export const FaceColors: Colors;
  28. export const VertexColors: Colors;