MeshStandardMaterial.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import { Color } from './../math/Color';
  2. import { Texture } from './../textures/Texture';
  3. import { Vector2 } from './../math/Vector2';
  4. import { MaterialParameters, Material } from './Material';
  5. export interface MeshStandardMaterialParameters extends MaterialParameters {
  6. color?: Color | string | number;
  7. roughness?: number;
  8. metalness?: number;
  9. map?: Texture;
  10. lightMap?: Texture;
  11. lightMapIntensity?: number;
  12. aoMap?: Texture;
  13. aoMapIntensity?: number;
  14. emissive?: Color | string | number;
  15. emissiveIntensity?: number;
  16. emissiveMap?: Texture;
  17. bumpMap?: Texture;
  18. bumpScale?: number;
  19. normalMap?: Texture;
  20. normalScale?: Vector2;
  21. displacementMap?: Texture;
  22. displacementScale?: number;
  23. displacementBias?: number;
  24. roughnessMap?: Texture;
  25. metalnessMap?: Texture;
  26. alphaMap?: Texture;
  27. envMap?: Texture;
  28. envMapIntensity?: number;
  29. refractionRatio?: number;
  30. wireframe?: boolean;
  31. wireframeLinewidth?: number;
  32. skinning?: boolean;
  33. morphTargets?: boolean;
  34. morphNormals?: boolean;
  35. }
  36. export class MeshStandardMaterial extends Material {
  37. constructor(parameters?: MeshStandardMaterialParameters);
  38. defines: any;
  39. color: Color;
  40. roughness: number;
  41. metalness: number;
  42. map: Texture | null;
  43. lightMap: Texture | null;
  44. lightMapIntensity: number;
  45. aoMap: Texture | null;
  46. aoMapIntensity: number;
  47. emissive: Color;
  48. emissiveIntensity: number;
  49. emissiveMap: Texture | null;
  50. bumpMap: Texture | null;
  51. bumpScale: number;
  52. normalMap: Texture | null;
  53. normalScale: number;
  54. displacementMap: Texture | null;
  55. displacementScale: number;
  56. displacementBias: number;
  57. roughnessMap: Texture | null;
  58. metalnessMap: Texture | null;
  59. alphaMap: Texture | null;
  60. envMap: Texture | null;
  61. envMapIntensity: number;
  62. refractionRatio: number;
  63. wireframe: boolean;
  64. wireframeLinewidth: number;
  65. skinning: boolean;
  66. morphTargets: boolean;
  67. morphNormals: boolean;
  68. setValues(parameters: MeshStandardMaterialParameters): void;
  69. }
粤ICP备19079148号