Capítulo 161 de 859
Abstract base class for loading binary texture formats RGBE, EXR or TGA. Textures are internally loaded via FileLoader.
Derived classes have to implement the parse() method which holds the parsing for the respective format.
Constructor
| Signature |
|---|
new DataTextureLoader( manager : LoadingManager ) (abstract) |
Methods
| Method | Description |
|---|---|
.createDataTexture( buffer : ArrayBuffer ) : DataTexture | Parses the given buffer and returns a configured data texture. Use this method for parsing texture data that is already in memory (e.g. drag and drop or data loaded from a server) without going throu… |
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) : DataTexture | Starts loading from the given URL and passes the loaded data texture to the onLoad() callback. The method also returns a new texture object which can directly be used for material creation. If you … |