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. Default is |
| mapping |
The texture mapping. Default is |
| wrapS |
The wrapS value. Default is |
| wrapT |
The wrapT value. Default is |
| magFilter |
The mag filter value. Default is |
| minFilter |
The min filter value. Default is |
| anisotropy |
The anisotropy value. Default is |
| format |
The texture format. Default is |
| depth |
The depth of the texture. Default is |
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.