MeshNormalMaterial.d.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { MaterialParameters, Material } from './Material';
  2. import { Texture } from './../textures/Texture';
  3. import { Vector2 } from './../math/Vector2';
  4. import { NormalMapTypes } from '../constants';
  5. export interface MeshNormalMaterialParameters extends MaterialParameters {
  6. bumpMap?: Texture;
  7. bumpScale?: number;
  8. normalMap?: Texture;
  9. normalMapType?: NormalMapTypes;
  10. normalScale?: Vector2;
  11. displacementMap?: Texture;
  12. displacementScale?: number;
  13. displacementBias?: number;
  14. wireframe?: boolean;
  15. wireframeLinewidth?: number;
  16. skinning?: boolean;
  17. morphTargets?: boolean;
  18. morphNormals?: boolean;
  19. }
  20. export class MeshNormalMaterial extends Material {
  21. constructor( parameters?: MeshNormalMaterialParameters );
  22. bumpMap: Texture | null;
  23. bumpScale: number;
  24. normalMap: Texture | null;
  25. normalMapType: NormalMapTypes;
  26. normalScale: Vector2;
  27. displacementMap: Texture | null;
  28. displacementScale: number;
  29. displacementBias: number;
  30. wireframe: boolean;
  31. wireframeLinewidth: number;
  32. skinning: boolean;
  33. morphTargets: boolean;
  34. morphNormals: boolean;
  35. setValues( parameters: MeshNormalMaterialParameters ): void;
  36. }