Capítulo 222 de 859
Creates an array of textures directly from raw buffer data.
true, the texture is flipped along the vertical axis when uploaded to the GPU.Constructor
| Signature |
|---|
new DataArrayTexture( data : TypedArray, width : number, height : number, depth : number ) |
Properties
| Property | Description |
|---|---|
.flipY : boolean | If set to true, the texture is flipped along the vertical axis when uploaded to the GPU. |
.generateMipmaps : boolean | Whether to generate mipmaps (if possible) for a texture. |
.image : Object | The image definition of a data texture. |
.isDataArrayTexture : boolean (readonly) | This flag can be used for type testing. |
.layerUpdates : Set.<number> | A set of all layers which need to be updated in the texture. |
| `.magFilter : NearestFilter | NearestMipmapNearestFilter |
| `.minFilter : NearestFilter | NearestMipmapNearestFilter |
.unpackAlignment : boolean | Specifies the alignment requirements for the start of each pixel row in memory. |
| `.wrapR : RepeatWrapping | ClampToEdgeWrapping |
Methods
| Method | Description |
|---|---|
.addLayerUpdate( layerIndex : number ) | Describes that a specific layer of the texture needs to be updated. Normally when Texture#needsUpdate is set to true, the entire data texture array is sent to the GPU. M… |
.clearLayerUpdates() | Resets the layer updates registry. |