API

Class RGBDTextureTools

Class used to host RGBD texture specific utilities

Index
  • Encode the texture to RGBD if possible.

    Parameters

    • internalTexture: InternalTexture

      the texture to encode

    • scene: Scene

      the scene hosting the texture

    • outputTextureType: number = Constants.TEXTURETYPE_UNSIGNED_BYTE

      type of the texture in which the encoding is performed

    Returns Promise<InternalTexture>

    a promise with the internalTexture having its texture replaced by the result of the processing