dist/claygl.es.js
function (renderer, path, cubeMap, option, onsuccess, onerror) {
        var self = this;

        if (typeof(option) === 'function') {
            onsuccess = option;
            onerror = onsuccess;
            option = {};
        }
        else {
            option = option || {};
        }

        textureUtil.loadTexture(path, option, function (texture) {
            // PENDING
            texture.flipY = option.flipY || false;
            self.panoramaToCubeMap(renderer, texture, cubeMap, option);
            texture.dispose(renderer);
            onsuccess && onsuccess(cubeMap);
        }, onerror);
    }
function (renderer, path, cubeMap, option, onsuccess, onerror) {
        var self = this;

        if (typeof(option) === 'function') {
            onsuccess = option;
            onerror = onsuccess;
            option = {};
        }
        else {
            option = option || {};
        }

        textureUtil.loadTexture(path, option, function (texture) {
            // PENDING
            texture.flipY = option.flipY || false;
            self.panoramaToCubeMap(renderer, texture, cubeMap, option);
            texture.dispose(renderer);
            onsuccess && onsuccess(cubeMap);
        }, onerror);
    }
function ( renderer , path , cubeMap , option , onsuccess , onerror ) { var self = this ; if ( typeof ( option ) === 'function' ) { onsuccess = option ; onerror = onsuccess ; option = { } ; } else { option = option || { } ; } textureUtil . loadTexture ( path , option , function ( texture ) { // PENDING texture . flipY = option . flipY || false ; self . panoramaToCubeMap ( renderer , texture , cubeMap , option ) ; texture . dispose ( renderer ) ; onsuccess && onsuccess ( cubeMap ) ; } , onerror ) ; }
Load a panorama texture and render it to a cube map
@param  {clay.Renderer} renderer
@param  {string} path
@param  {clay.TextureCube} cubeMap
@param  {object} [option]
@param  {boolean} [option.encodeRGBM]
@param  {number} [option.exposure]
@param  {Function} [onsuccess]
@param  {Function} [onerror]
Load a panorama texture and render it to a cube map