UNPKG

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