MeshBasicMaterial.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. import { Color } from './../math/Color';
  2. import { Texture } from './../textures/Texture';
  3. import { MaterialParameters, Material } from './Material';
  4. import { Combine } from '../constants';
  5. /**
  6. * parameters is an object with one or more properties defining the material's appearance.
  7. */
  8. export interface MeshBasicMaterialParameters extends MaterialParameters {
  9. color?: Color | string | number;
  10. opacity?: number;
  11. map?: Texture | null;
  12. aoMap?: Texture | null;
  13. aoMapIntensity?: number;
  14. specularMap?: Texture | null;
  15. alphaMap?: Texture | null;
  16. envMap?: Texture | null;
  17. combine?: Combine;
  18. reflectivity?: number;
  19. refractionRatio?: number;
  20. wireframe?: boolean;
  21. wireframeLinewidth?: number;
  22. wireframeLinecap?: string;
  23. wireframeLinejoin?: string;
  24. skinning?: boolean;
  25. morphTargets?: boolean;
  26. }
  27. export class MeshBasicMaterial extends Material {
  28. constructor( parameters?: MeshBasicMaterialParameters );
  29. /**
  30. * @default 'MeshBasicMaterial'
  31. */
  32. type: string;
  33. /**
  34. * @default new THREE.Color( 0xffffff )
  35. */
  36. color: Color;
  37. /**
  38. * @default null
  39. */
  40. map: Texture | null;
  41. /**
  42. * @default null
  43. */
  44. aoMap: Texture | null;
  45. /**
  46. * @default 1
  47. */
  48. aoMapIntensity: number;
  49. /**
  50. * @default null
  51. */
  52. specularMap: Texture | null;
  53. /**
  54. * @default null
  55. */
  56. alphaMap: Texture | null;
  57. /**
  58. * @default null
  59. */
  60. envMap: Texture | null;
  61. /**
  62. * @default THREE.MultiplyOperation
  63. */
  64. combine: Combine;
  65. /**
  66. * @default 1
  67. */
  68. reflectivity: number;
  69. /**
  70. * @default 0.98
  71. */
  72. refractionRatio: number;
  73. /**
  74. * @default false
  75. */
  76. wireframe: boolean;
  77. /**
  78. * @default 1
  79. */
  80. wireframeLinewidth: number;
  81. /**
  82. * @default 'round'
  83. */
  84. wireframeLinecap: string;
  85. /**
  86. * @default 'round'
  87. */
  88. wireframeLinejoin: string;
  89. /**
  90. * @default false
  91. */
  92. skinning: boolean;
  93. /**
  94. * @default false
  95. */
  96. morphTargets: boolean;
  97. setValues( parameters: MeshBasicMaterialParameters ): void;
  98. }
粤ICP备19079148号