CubeTexture.d.ts 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { Texture } from './Texture';
  2. import {
  3. Mapping,
  4. Wrapping,
  5. TextureFilter,
  6. PixelFormat,
  7. TextureDataType,
  8. TextureEncoding,
  9. } from '../constants';
  10. export class CubeTexture extends Texture {
  11. /**
  12. * @param [images=[]]
  13. * @param [mapping=THREE.CubeReflectionMapping]
  14. * @param [wrapS=THREE.ClampToEdgeWrapping]
  15. * @param [wrapT=THREE.ClampToEdgeWrapping]
  16. * @param [magFilter=THREE.LinearFilter]
  17. * @param [minFilter=THREE.LinearMipmapLinearFilter]
  18. * @param [format=THREE.RGBFormat]
  19. * @param [type=THREE.UnsignedByteType]
  20. * @param [anisotropy=1]
  21. * @param [encoding=THREE.LinearEncoding]
  22. */
  23. constructor(
  24. images?: any[], // HTMLImageElement or HTMLCanvasElement
  25. mapping?: Mapping,
  26. wrapS?: Wrapping,
  27. wrapT?: Wrapping,
  28. magFilter?: TextureFilter,
  29. minFilter?: TextureFilter,
  30. format?: PixelFormat,
  31. type?: TextureDataType,
  32. anisotropy?: number,
  33. encoding?: TextureEncoding
  34. );
  35. images: any; // returns and sets the value of Texture.image in the codde ?
  36. /**
  37. * @default false
  38. */
  39. flipY: boolean;
  40. readonly isCubeTexture: true;
  41. }
粤ICP备19079148号