MeshStandardMaterial.d.ts 2.1 KB

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