2
0

MeshStandardMaterial.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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;
  11. lightMap?: Texture;
  12. lightMapIntensity?: number;
  13. aoMap?: Texture;
  14. aoMapIntensity?: number;
  15. emissive?: Color | string | number;
  16. emissiveIntensity?: number;
  17. emissiveMap?: Texture;
  18. bumpMap?: Texture;
  19. bumpScale?: number;
  20. normalMap?: Texture;
  21. normalMapType?: NormalMapTypes;
  22. normalScale?: Vector2;
  23. displacementMap?: Texture;
  24. displacementScale?: number;
  25. displacementBias?: number;
  26. roughnessMap?: Texture;
  27. metalnessMap?: Texture;
  28. alphaMap?: Texture;
  29. envMap?: Texture;
  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. defines: any;
  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. morphTargets: boolean;
  70. morphNormals: boolean;
  71. setValues( parameters: MeshStandardMaterialParameters ): void;
  72. }