Capítulo 199 de 859

Chapter 199: PVRLoader

Core Idea

A loader for the PVRTC texture compression format.

Code Examples

const loader = new PVRLoader();
const map = loader.load( 'textures/compressed/disturb_4bpp_rgb.pvr' );
map.colorSpace = THREE.SRGBColorSpace; // only for color textures
  • What it demonstrates: Typical usage of PVRLoader.

Reference Tables

Constructor

Signature
new PVRLoader( manager : LoadingManager )

Methods

MethodDescription
.parse( buffer : ArrayBuffer, loadMipmaps : boolean ) : CompressedTextureLoader~TexDataParses the given PVRTC texture data.

Key Takeaways

  1. PVRLoader extends: Loader → CompressedTextureLoader
  2. Key methods: parse.

Connects To