MeshPhysicalMaterial.d.ts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. import { Texture } from './../textures/Texture';
  2. import { Vector2 } from './../math/Vector2';
  3. import {
  4. MeshStandardMaterialParameters,
  5. MeshStandardMaterial,
  6. } from './MeshStandardMaterial';
  7. import { Color } from './../math/Color';
  8. export interface MeshPhysicalMaterialParameters
  9. extends MeshStandardMaterialParameters {
  10. clearcoat?: number;
  11. clearcoatMap?: Texture | null;
  12. clearcoatRoughness?: number;
  13. clearcoatRoughnessMap?: Texture | null;
  14. clearcoatNormalScale?: Vector2;
  15. clearcoatNormalMap?: Texture | null;
  16. reflectivity?: number;
  17. ior?: number;
  18. sheen?: Color;
  19. transmission?: number;
  20. transmissionMap?: Texture | null;
  21. }
  22. export class MeshPhysicalMaterial extends MeshStandardMaterial {
  23. constructor( parameters: MeshPhysicalMaterialParameters );
  24. /**
  25. * @default 'MeshPhysicalMaterial'
  26. */
  27. type: string;
  28. /**
  29. * @default { 'STANDARD': '', 'PHYSICAL': '' }
  30. */
  31. defines: { [key: string]: any };
  32. /**
  33. * @default 0
  34. */
  35. clearcoat: number;
  36. /**
  37. * @default null
  38. */
  39. clearcoatMap: Texture | null;
  40. /**
  41. * @default 0
  42. */
  43. clearcoatRoughness: number;
  44. /**
  45. * @default null
  46. */
  47. clearcoatRoughnessMap: Texture | null;
  48. /**
  49. * @default new THREE.Vector2( 1, 1 )
  50. */
  51. clearcoatNormalScale: Vector2;
  52. /**
  53. * @default null
  54. */
  55. clearcoatNormalMap: Texture | null;
  56. /**
  57. * @default 0.5
  58. */
  59. reflectivity: number;
  60. /**
  61. * @default 1.5
  62. */
  63. ior: number;
  64. /**
  65. * @default null
  66. */
  67. sheen: Color | null;
  68. /**
  69. * @default 0
  70. */
  71. transmission: number;
  72. /**
  73. * @default null
  74. */
  75. transmissionMap: Texture | null;
  76. }
粤ICP备19079148号