dist/claygl.es.js
function (envMap) {
        if (envMap.textureType === 'texture2D') {
            this.material.define('EQUIRECTANGULAR');
            // LINEAR filter can remove the artifacts in pole
            envMap.minFilter = Texture.LINEAR;
        }
        else {
            this.material.undefine('EQUIRECTANGULAR');
        }
        this.material.set('environmentMap', envMap);
    }
function (envMap) {
        if (envMap.textureType === 'texture2D') {
            this.material.define('EQUIRECTANGULAR');
            // LINEAR filter can remove the artifacts in pole
            envMap.minFilter = Texture.LINEAR;
        }
        else {
            this.material.undefine('EQUIRECTANGULAR');
        }
        this.material.set('environmentMap', envMap);
    }
function ( envMap ) { if ( envMap . textureType === 'texture2D' ) { this . material . define ( 'EQUIRECTANGULAR' ) ; // LINEAR filter can remove the artifacts in pole envMap . minFilter = Texture . LINEAR ; } else { this . material . undefine ( 'EQUIRECTANGULAR' ) ; } this . material . set ( 'environmentMap' , envMap ) ; }
Set environment map
@param {clay.TextureCube} envMap
Set environment map