Constructor
new DepthTexture( width : number, height : number, type : number, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, anisotropy : number, format : number, depth : number )
Constructs a new depth texture.
width |
The width of the texture. |
height |
The height of the texture. |
type |
The texture type. |
mapping |
The texture mapping. |
wrapS |
The wrapS value. |
wrapT |
The wrapT value. |
magFilter |
The mag filter value. |
minFilter |
The min filter value. |
anisotropy |
The anisotropy value. |
format |
The texture format. |
depth |
The depth of the texture. |
Properties
.compareFunction : NeverCompare | LessCompare | EqualCompare | LessEqualCompare | GreaterCompare | NotEqualCompare | GreaterEqualCompare | AlwaysCompare
Code corresponding to the depth compare function.
Default is null.
.flipY : boolean
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
.generateMipmaps : boolean
Whether to generate mipmaps (if possible) for a texture.
Overwritten and set to false by default.
Default is false.
- Overrides: Texture#generateMipmaps
.isDepthTexture : boolean (readonly)
This flag can be used for type testing.
Default is true.