Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PanoramaToCubeMapTools

Helper class useful to convert panorama picture to their cubemap representation in 6 faces.

Hierarchy

  • PanoramaToCubeMapTools

Index

Methods

Static ConvertPanoramaToCubemapSearch playground for ConvertPanoramaToCubemap

  • ConvertPanoramaToCubemap(float32Array: Float32Array, inputWidth: number, inputHeight: number, size: number): CubeMapInfo
  • Converts a panorama stored in RGB right to left up to down format into a cubemap (6 faces).

    Parameters

    • float32Array: Float32Array

      The source data.

    • inputWidth: number

      The width of the input panorama.

    • inputHeight: number

      The height of the input panorama.

    • size: number

      The willing size of the generated cubemap (each faces will be size * size pixels)

    Returns CubeMapInfo

    The cubemap data

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method