UNPKG

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