rgbdTextureTools.d.ts 1.0 KB

1234567891011121314151617181920212223
  1. import "../Shaders/rgbdDecode.fragment";
  2. import "../Engines/Extensions/engine.renderTarget";
  3. import type { Texture } from "../Materials/Textures/texture";
  4. import type { InternalTexture } from "../Materials/Textures/internalTexture";
  5. import type { Scene } from "../scene";
  6. /**
  7. * Class used to host RGBD texture specific utilities
  8. */
  9. export declare class RGBDTextureTools {
  10. /**
  11. * Expand the RGBD Texture from RGBD to Half Float if possible.
  12. * @param texture the texture to expand.
  13. */
  14. static ExpandRGBDTexture(texture: Texture): void;
  15. /**
  16. * Encode the texture to RGBD if possible.
  17. * @param internalTexture the texture to encode
  18. * @param scene the scene hosting the texture
  19. * @param outputTextureType type of the texture in which the encoding is performed
  20. * @returns a promise with the internalTexture having its texture replaced by the result of the processing
  21. */
  22. static EncodeTextureToRGBD(internalTexture: InternalTexture, scene: Scene, outputTextureType?: number): Promise<InternalTexture>;
  23. }