File: TGALoader.md | Updated: 11/15/2025
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
TGALoader is an addon, and must be imported explicitly, see Installation#Addons.
import { TGALoader } from 'three/addons/loaders/TGALoader.js';
Constructs a new TGA loader.
manager | The loading manager.
---|---
Parses the given TGA texture data.
buffer | The raw texture data.
---|---
Overrides: DataTextureLoader#parse
Returns: An object representing the parsed texture data.