1 | import { Texture } from './Texture';
|
2 | import { Mapping, Wrapping, TextureFilter, TextureDataType } from '../constants';
|
3 |
|
4 | export class DepthTexture extends Texture {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
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 |
|
32 |
|
33 | flipY: boolean;
|
34 |
|
35 | |
36 |
|
37 |
|
38 | generateMipmaps: boolean;
|
39 |
|
40 | readonly isDepthTexture: true;
|
41 | }
|