MeshBasicMaterial.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import { Color } from './../math/Color';
  2. import { Texture } from './../textures/Texture';
  3. import { MaterialParameters, Material } from './Material';
  4. import { Combine } from '../constants';
  5. /**
  6. * parameters is an object with one or more properties defining the material's appearance.
  7. */
  8. export interface MeshBasicMaterialParameters extends MaterialParameters {
  9. color?: Color | string | number;
  10. opacity?: number;
  11. map?: Texture | null;
  12. aoMap?: Texture | null;
  13. aoMapIntensity?: number;
  14. specularMap?: Texture | null;
  15. alphaMap?: Texture | null;
  16. envMap?: Texture | null;
  17. combine?: Combine;
  18. reflectivity?: number;
  19. refractionRatio?: number;
  20. wireframe?: boolean;
  21. wireframeLinewidth?: number;
  22. wireframeLinecap?: string;
  23. wireframeLinejoin?: string;
  24. skinning?: boolean;
  25. morphTargets?: boolean;
  26. }
  27. export class MeshBasicMaterial extends Material {
  28. constructor( parameters?: MeshBasicMaterialParameters );
  29. color: Color;
  30. map: Texture | null;
  31. aoMap: Texture | null;
  32. aoMapIntensity: number;
  33. specularMap: Texture | null;
  34. alphaMap: Texture | null;
  35. envMap: Texture | null;
  36. combine: Combine;
  37. reflectivity: number;
  38. refractionRatio: number;
  39. wireframe: boolean;
  40. wireframeLinewidth: number;
  41. wireframeLinecap: string;
  42. wireframeLinejoin: string;
  43. skinning: boolean;
  44. morphTargets: boolean;
  45. setValues( parameters: MeshBasicMaterialParameters ): void;
  46. }