three#BufferGeometryLoader JavaScript Examples

The following examples show how to use three#BufferGeometryLoader. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TileLoader.js    From BlueMapWeb with MIT License 6 votes vote down vote up
/**
     * @param tilePath {string}
     * @param material {THREE.Material | THREE.Material[]}
     * @param tileSettings {{
     *      tileSize: {x: number, z: number},
     *	    scale: {x: number, z: number},
     *      translate: {x: number, z: number}
     * }}
     * @param tileCacheHash {number}
     * @param layer {number}
     */
    constructor(tilePath, material, tileSettings, tileCacheHash = 0, layer = 0) {
        Object.defineProperty( this, 'isTileLoader', { value: true } );

        this.tilePath = tilePath;
        this.material = material;
        this.tileSettings = tileSettings;

        this.layer = layer;

        this.tileCacheHash = tileCacheHash;

        this.fileLoader = new FileLoader();
        this.fileLoader.setResponseType('json');

        this.bufferGeometryLoader = new BufferGeometryLoader();
    }