MeshToonMaterial.d.ts 2.1 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 MeshToonMaterialParameters extends MaterialParameters {
  7. /** geometry color in hexadecimal. Default is 0xffffff. */
  8. color?: Color | string | number;
  9. specular?: Color | string | number;
  10. shininess?: number;
  11. opacity?: number;
  12. gradientMap?: Texture | null;
  13. map?: Texture | null;
  14. lightMap?: Texture | null;
  15. lightMapIntensity?: number;
  16. aoMap?: Texture | null;
  17. aoMapIntensity?: number;
  18. emissive?: Color | string | number;
  19. emissiveIntensity?: number;
  20. emissiveMap?: Texture | null;
  21. bumpMap?: Texture | null;
  22. bumpScale?: number;
  23. normalMap?: Texture | null;
  24. normalMapType?: NormalMapTypes;
  25. normalScale?: Vector2;
  26. displacementMap?: Texture | null;
  27. displacementScale?: number;
  28. displacementBias?: number;
  29. specularMap?: Texture | null;
  30. alphaMap?: Texture | null;
  31. wireframe?: boolean;
  32. wireframeLinewidth?: number;
  33. wireframeLinecap?: string;
  34. wireframeLinejoin?: string;
  35. skinning?: boolean;
  36. morphTargets?: boolean;
  37. morphNormals?: boolean;
  38. }
  39. export class MeshToonMaterial extends Material {
  40. constructor( parameters?: MeshToonMaterialParameters );
  41. color: Color;
  42. specular: Color;
  43. shininess: number;
  44. gradientMap: Texture | null;
  45. map: Texture | null;
  46. lightMap: Texture | null;
  47. lightMapIntensity: number;
  48. aoMap: Texture | null;
  49. aoMapIntensity: number;
  50. emissive: Color;
  51. emissiveIntensity: number;
  52. emissiveMap: Texture | null;
  53. bumpMap: Texture | null;
  54. bumpScale: number;
  55. normalMap: Texture | null;
  56. normalMapType: NormalMapTypes;
  57. normalScale: Vector2;
  58. displacementMap: Texture | null;
  59. displacementScale: number;
  60. displacementBias: number;
  61. specularMap: Texture | null;
  62. alphaMap: Texture | null;
  63. wireframe: boolean;
  64. wireframeLinewidth: number;
  65. wireframeLinecap: string;
  66. wireframeLinejoin: string;
  67. skinning: boolean;
  68. morphTargets: boolean;
  69. morphNormals: boolean;
  70. setValues( parameters: MeshToonMaterialParameters ): void;
  71. }
粤ICP备19079148号