photoDome.d.ts 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import type { Scene } from "../scene";
  2. import { Texture } from "../Materials/Textures/texture";
  3. import { TextureDome } from "./textureDome";
  4. /**
  5. * Display a 360 degree photo on an approximately spherical surface, useful for VR applications or skyboxes.
  6. * As a subclass of TransformNode, this allow parenting to the camera with different locations in the scene.
  7. * This class achieves its effect with a Texture and a correctly configured BackgroundMaterial on an inverted sphere.
  8. * Potential additions to this helper include zoom and and non-infinite distance rendering effects.
  9. */
  10. export declare class PhotoDome extends TextureDome<Texture> {
  11. /**
  12. * Define the image as a Monoscopic panoramic 360 image.
  13. */
  14. static readonly MODE_MONOSCOPIC = 0;
  15. /**
  16. * Define the image as a Stereoscopic TopBottom/OverUnder panoramic 360 image.
  17. */
  18. static readonly MODE_TOPBOTTOM = 1;
  19. /**
  20. * Define the image as a Stereoscopic Side by Side panoramic 360 image.
  21. */
  22. static readonly MODE_SIDEBYSIDE = 2;
  23. /**
  24. * Gets or sets the texture being displayed on the sphere
  25. */
  26. get photoTexture(): Texture;
  27. /**
  28. * sets the texture being displayed on the sphere
  29. */
  30. set photoTexture(value: Texture);
  31. /**
  32. * Gets the current video mode for the video. It can be:
  33. * * TextureDome.MODE_MONOSCOPIC : Define the texture source as a Monoscopic panoramic 360.
  34. * * TextureDome.MODE_TOPBOTTOM : Define the texture source as a Stereoscopic TopBottom/OverUnder panoramic 360.
  35. * * TextureDome.MODE_SIDEBYSIDE : Define the texture source as a Stereoscopic Side by Side panoramic 360.
  36. */
  37. get imageMode(): number;
  38. /**
  39. * Sets the current video mode for the video. It can be:
  40. * * TextureDome.MODE_MONOSCOPIC : Define the texture source as a Monoscopic panoramic 360.
  41. * * TextureDome.MODE_TOPBOTTOM : Define the texture source as a Stereoscopic TopBottom/OverUnder panoramic 360.
  42. * * TextureDome.MODE_SIDEBYSIDE : Define the texture source as a Stereoscopic Side by Side panoramic 360.
  43. */
  44. set imageMode(value: number);
  45. protected _initTexture(urlsOrElement: string, scene: Scene, options: any): Texture;
  46. }