MeshMatcapMaterial.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 MeshMatcapMaterialParameters extends MaterialParameters {
  7. color?: Color | string | number;
  8. matMap?: Texture;
  9. map?: Texture;
  10. bumpMap?: Texture;
  11. bumpScale?: number;
  12. normalMap?: Texture;
  13. normalMapType?: NormalMapTypes;
  14. normalScale?: Vector2;
  15. displacementMap?: Texture;
  16. displacementScale?: number;
  17. displacementBias?: number;
  18. alphaMap?: Texture;
  19. skinning?: boolean;
  20. morphTargets?: boolean;
  21. morphNormals?: boolean;
  22. }
  23. export class MeshMatcapMaterial extends Material {
  24. constructor(parameters?: MeshMatcapMaterialParameters);
  25. color: Color;
  26. matMap: Texture | null;
  27. map: Texture | null;
  28. bumpMap: Texture | null;
  29. bumpScale: number;
  30. normalMap: Texture | null;
  31. normalMapType: NormalMapTypes;
  32. normalScale: Vector2;
  33. displacementMap: Texture | null;
  34. displacementScale: number;
  35. displacementBias: number;
  36. alphaMap: Texture | null;
  37. skinning: boolean;
  38. morphTargets: boolean;
  39. morphNormals: boolean;
  40. setValues(parameters: MeshMatcapMaterialParameters): void;
  41. }