Constructor
new DataTexture( data : TypedArray, 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 data texture.
| data |
The buffer data. Default is |
| width |
The width of the texture. Default is |
| height |
The height of the texture. Default is |
| 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
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
.isDataTexture : boolean (readonly)
This flag can be used for type testing.
Default is true.
.unpackAlignment : boolean
Specifies the alignment requirements for the start of each pixel row in memory.
Overwritten and set to 1 by default.
Default is 1.
- Overrides: Texture#unpackAlignment