Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class DDSImageLoader

Provides a few interfaces to load dds-images from local files or from memory.

No constructor, exposed as a global object DDSImageLoader.

Note that the implementation is incomplete. Supported formats include:

BGRA,
BC1,
BC2,
BC3,
BC4,
BC5,
BC6H,
BC7,

Faces and mipmaps are not implemented.

Currently this class is mainly used as an option for loading lightmaps stored in BC6H.

class DDSImageLoader

Name Description
Methods  
loadFile() Load a dds-image from local file.
loadMemory() Load a dds-image from a memory buffer.

Methods

loadFile()

.loadFile(name: String): DDSImage

Load a dds-image from local file.

loadMemory()

.loadMemory(buf: ArrayBuffer): DDSImage

Load a dds-image from a memory buffer.