PointsMaterial.d.ts 996 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { Material, MaterialParameters } from './Material';
  2. import { Color } from './../math/Color';
  3. import { Texture } from './../textures/Texture';
  4. // MultiMaterial does not inherit the Material class in the original code. However, it should treat as Material class.
  5. // See tests/canvas/canvas_materials.ts.
  6. /**
  7. * @deprecated Use an Array instead.
  8. */
  9. export class MultiMaterial extends Material {
  10. constructor( materials?: Material[] );
  11. isMultiMaterial: true;
  12. materials: Material[];
  13. toJSON( meta: any ): any;
  14. }
  15. /**
  16. * @deprecated Use {@link MultiMaterial} instead.
  17. */
  18. export interface PointsMaterialParameters extends MaterialParameters {
  19. color?: Color | string | number;
  20. map?: Texture;
  21. size?: number;
  22. sizeAttenuation?: boolean;
  23. }
  24. export class PointsMaterial extends Material {
  25. constructor( parameters?: PointsMaterialParameters );
  26. color: Color;
  27. map: Texture | null;
  28. size: number;
  29. sizeAttenuation: boolean;
  30. setValues( parameters: PointsMaterialParameters ): void;
  31. }
粤ICP备19079148号