Capítulo 205 de 859
A loader for the TGA texture format.
const loader = new TGALoader();
const texture = await loader.loadAsync( 'textures/crate_color8.tga' );
texture.colorSpace = THREE.SRGBColorSpace; // only for color textures
Constructor
| Signature |
|---|
new TGALoader( manager : LoadingManager ) |
Methods
| Method | Description |
|---|---|
.parse( buffer : ArrayBuffer ) : DataTextureLoader~TexData | Parses the given TGA texture data. |