Inheritance: EventDispatcher → Texture →
This class can be used to automatically save the depth information of a rendering into a texture.
Constructs a new depth texture.
width
The width of the texture.
height
The height of the texture.
type
The texture type.
Default is UnsignedIntType.
mapping
The texture mapping.
Default is Texture.DEFAULT_MAPPING.
wrapS
The wrapS value.
Default is ClampToEdgeWrapping.
wrapT
The wrapT value.
Default is ClampToEdgeWrapping.
magFilter
The mag filter value.
Default is LinearFilter.
minFilter
The min filter value.
Default is LinearFilter.
anisotropy
The anisotropy value.
Default is Texture.DEFAULT_ANISOTROPY.
format
The texture format.
Default is DepthFormat.
depth
The depth of the texture.
Default is 1.
Code corresponding to the depth compare function.
Default is null.
If set to true, the texture is flipped along the vertical axis when uploaded to the GPU.
Overwritten and set to false by default.
Default is false.
Overrides: Texture#flipY
Whether to generate mipmaps (if possible) for a texture.
Overwritten and set to false by default.
Default is false.
Overrides: Texture#generateMipmaps
This flag can be used for type testing.
Default is true.