dist/claygl.es.js
function (node) {
        if (node instanceof Camera) {
            if (this._cameraList.length > 0) {
                console.warn('Found multiple camera in one scene. Use the fist one.');
            }
            this._cameraList.push(node);
        }
        else if (node instanceof Light) {
            this.lights.push(node);
        }
        if (node.name) {
            this._nodeRepository[node.name] = node;
        }
    }
function (node) {
        if (node instanceof Camera) {
            if (this._cameraList.length > 0) {
                console.warn('Found multiple camera in one scene. Use the fist one.');
            }
            this._cameraList.push(node);
        }
        else if (node instanceof Light) {
            this.lights.push(node);
        }
        if (node.name) {
            this._nodeRepository[node.name] = node;
        }
    }
function ( node ) { if ( node instanceof Camera ) { if ( this . _cameraList . length > 0 ) { console . warn ( 'Found multiple camera in one scene. Use the fist one.' ) ; } this . _cameraList . push ( node ) ; } else if ( node instanceof Light ) { this . lights . push ( node ) ; } if ( node . name ) { this . _nodeRepository [ node . name ] = node ; } }
Add node to scene
Add node to scene