Constructor
new CompressedTexture( mipmaps : Array.<Object>, width : number, height : number, format : number, type : number, mapping : number, wrapS : number, wrapT : number, magFilter : number, minFilter : number, anisotropy : number, colorSpace : string )
Constructs a new compressed texture.
| mipmaps |
This array holds for all mipmaps (including the bases mip) the data and dimensions. |
| width |
The width of the texture. |
| height |
The height of the texture. |
| format |
The texture format. Default is |
| 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 |
| colorSpace |
The color space. Default is |
Properties
.flipY : boolean (readonly)
If set to true, the texture is flipped along the vertical axis when
uploaded to the GPU.
Overwritten and set to false by default since it is not possible to
flip compressed textures.
Default is false.
- Overrides: Texture#flipY
.generateMipmaps : boolean (readonly)
Whether to generate mipmaps (if possible) for a texture.
Overwritten and set to false by default since it is not
possible to generate mipmaps for compressed data. Mipmaps
must be embedded in the compressed texture file.
Default is false.
- Overrides: Texture#generateMipmaps
.image : Object
The image property of a compressed texture just defines its dimensions.
- Overrides: Texture#image
.isCompressedTexture : boolean (readonly)
This flag can be used for type testing.
Default is true.
.mipmaps : Array.<Object>
This array holds for all mipmaps (including the bases mip) the data and dimensions.
- Overrides: Texture#mipmaps