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. |
width |
The width of the texture. |
height |
The height of the texture. |
format |
The texture format. |
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. |
colorSpace |
The color space. |
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