DepthTexture.d.ts 855 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Texture } from './Texture';
  2. import {
  3. Mapping,
  4. Wrapping,
  5. TextureFilter,
  6. TextureDataType,
  7. } from '../constants';
  8. export class DepthTexture extends Texture {
  9. /**
  10. * @param width
  11. * @param height
  12. * @param type
  13. * @param [mapping=THREE.Texture.DEFAULT_MAPPING]
  14. * @param [wrapS=THREE.ClampToEdgeWrapping]
  15. * @param [wrapT=THREE.ClampToEdgeWrapping]
  16. * @param [magFilter=THREE.NearestFilter]
  17. * @param [minFilter=THREE.NearestFilter]
  18. * @param [anisotropy=1]
  19. */
  20. constructor(
  21. width: number,
  22. height: number,
  23. type?: TextureDataType,
  24. mapping?: Mapping,
  25. wrapS?: Wrapping,
  26. wrapT?: Wrapping,
  27. magFilter?: TextureFilter,
  28. minFilter?: TextureFilter,
  29. anisotropy?: number
  30. );
  31. image: { width: number; height: number };
  32. /**
  33. * @default false
  34. */
  35. flipY: boolean;
  36. /**
  37. * @default false
  38. */
  39. generateMipmaps: boolean;
  40. }
粤ICP备19079148号