Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HDRTools

This groups tools to convert HDR texture to native colors array.

Hierarchy

  • HDRTools

Index

Methods

Static GetCubeMapTextureDataSearch playground for GetCubeMapTextureData

  • GetCubeMapTextureData(buffer: ArrayBuffer, size: number): CubeMapInfo
  • Returns the cubemap information (each faces texture data) extracted from an RGBE texture. This RGBE texture needs to store the information as a panorama.

    More information on this format are available here: https://en.wikipedia.org/wiki/RGBE_image_format

    Parameters

    • buffer: ArrayBuffer

      The binary file stored in an array buffer.

    • size: number

      The expected size of the extracted cubemap.

    Returns CubeMapInfo

    The Cube Map information.

Static RGBE_ReadHeaderSearch playground for RGBE_ReadHeader

  • RGBE_ReadHeader(uint8array: Uint8Array): HDRInfo
  • Reads header information from an RGBE texture stored in a native array. More information on this format are available here: https://en.wikipedia.org/wiki/RGBE_image_format

    Parameters

    • uint8array: Uint8Array

      The binary file stored in native array.

    Returns HDRInfo

    The header information.

Static RGBE_ReadPixelsSearch playground for RGBE_ReadPixels

  • RGBE_ReadPixels(uint8array: Uint8Array, hdrInfo: HDRInfo): Float32Array
  • Returns the pixels data extracted from an RGBE texture. This pixels will be stored left to right up to down in the R G B order in one array.

    More information on this format are available here: https://en.wikipedia.org/wiki/RGBE_image_format

    Parameters

    • uint8array: Uint8Array

      The binary file stored in an array buffer.

    • hdrInfo: HDRInfo

      The header information of the file.

    Returns Float32Array

    The pixels data in RGB right to left up to down order.

Legend

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