Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CubeMapToSphericalPolynomialTools

Helper class dealing with the extraction of spherical polynomial dataArray from a cube map.

Hierarchy

  • CubeMapToSphericalPolynomialTools

Index

Methods

Static ConvertCubeMapTextureToSphericalPolynomialSearch playground for ConvertCubeMapTextureToSphericalPolynomial

  • Converts a texture to the according Spherical Polynomial data. This extracts the first 3 orders only as they are the only one used in the lighting.

    Parameters

    • texture: BaseTexture

      The texture to extract the information from.

    Returns Nullable<Promise<SphericalPolynomial>>

    The Spherical Polynomial data.

Static ConvertCubeMapToSphericalPolynomialSearch playground for ConvertCubeMapToSphericalPolynomial

  • Converts a cubemap to the according Spherical Polynomial data. This extracts the first 3 orders only as they are the only one used in the lighting.

    Parameters

    • cubeInfo: CubeMapInfo

      The Cube map to extract the information from.

    Returns SphericalPolynomial

    The Spherical Polynomial data.

Legend

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