LoaderCompressedTextureLoader

PVRLoader

A loader for the PVRTC texture compression format.

Code Example

const loader = new PVRLoader();
const map = loader.load( 'textures/compressed/disturb_4bpp_rgb.pvr' );
map.colorSpace = THREE.SRGBColorSpace; // only for color textures

Import

PVRLoader is an addon, and must be imported explicitly, see Installation#Addons.

import { PVRLoader } from 'three/addons/loaders/PVRLoader.js';

Constructor

new PVRLoader( manager : LoadingManager )

Constructs a new PVR loader.

manager

The loading manager.

Methods

.parse( buffer : ArrayBuffer, loadMipmaps : boolean ) : CompressedTextureLoader~TexData

Parses the given PVRTC texture data.

buffer

The raw texture data.

loadMipmaps

Whether to load mipmaps or not. This option is not yet supported by the loader.

Overrides: CompressedTextureLoader#parse
Returns: An object representing the parsed texture data.

Source

examples/jsm/loaders/PVRLoader.js