CubemapTilesPanorama: {
    baseUrl?: CubemapPanorama;
    faceSize: number;
    flipTopBottom?: boolean;
    nbTiles: number;
    tileUrl: ((face: keyof Cubemap, col: number, row: number) => string | null);
}

Configuration of a tiled cubemap

Type declaration

  • OptionalbaseUrl?: CubemapPanorama

    low resolution panorama loaded before tiles

  • faceSize: number

    size of a face in pixels

  • OptionalflipTopBottom?: boolean

    Set to true if the top and bottom faces are not correctly oriented

    false
    
  • nbTiles: number

    number of tiles on a side of a face

  • tileUrl: ((face: keyof Cubemap, col: number, row: number) => string | null)

    function to build a tile url

      • (face, col, row): string | null
      • Parameters

        • face: keyof Cubemap
        • col: number
        • row: number

        Returns string | null