MeshStandardMaterial.d.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. morphTargets?: boolean;
  36. morphNormals?: boolean;
  37. }
  38. export class MeshStandardMaterial extends Material {
  39. constructor( parameters?: MeshStandardMaterialParameters );
  40. color: Color;
  41. roughness: number;
  42. metalness: number;
  43. map: Texture | null;
  44. lightMap: Texture | null;
  45. lightMapIntensity: number;
  46. aoMap: Texture | null;
  47. aoMapIntensity: number;
  48. emissive: Color;
  49. emissiveIntensity: number;
  50. emissiveMap: Texture | null;
  51. bumpMap: Texture | null;
  52. bumpScale: number;
  53. normalMap: Texture | null;
  54. normalMapType: NormalMapTypes;
  55. normalScale: Vector2;
  56. displacementMap: Texture | null;
  57. displacementScale: number;
  58. displacementBias: number;
  59. roughnessMap: Texture | null;
  60. metalnessMap: Texture | null;
  61. alphaMap: Texture | null;
  62. envMap: Texture | null;
  63. envMapIntensity: number;
  64. refractionRatio: number;
  65. wireframe: boolean;
  66. wireframeLinewidth: number;
  67. skinning: boolean;
  68. morphTargets: boolean;
  69. morphNormals: boolean;
  70. setValues( parameters: MeshStandardMaterialParameters ): void;
  71. }