loadCRN

Asynchronously loads and parses the given URL to a CRN file or parses the raw binary data of a CRN file. Returns a promise that will resolve to an object containing the image buffer, width, height and format once loaded, or reject if the URL failed to load or failed to parse the data. The data is loaded using XMLHttpRequest, which means that in order to make requests to another origin, the server must have Cross-Origin Resource Sharing (CORS) headers enabled.

Deprecated: This function has been deprecated and will be removed in CesiumJS 1.82.

Example:
// load a single URL asynchronously
Cesium.loadCRN('some/url').then(function(textureData) {
    var width = textureData.width;
    var height = textureData.height;
    var format = textureData.internalFormat;
    var arrayBufferView = textureData.bufferView;
    // use the data to create a texture
}).otherwise(function(error) {
    // an error occurred
});
See: