Skybox.d.ts 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { Mesh, Texture } from "three";
  2. declare class SkyboxClass {
  3. private _enabled;
  4. private _mode;
  5. private _sky;
  6. private _cubemapSky;
  7. private _directionalLight;
  8. private _showSun;
  9. private _inclination;
  10. private _azimuth;
  11. private _sunSphere;
  12. private _serializedSkybox;
  13. private _onUpdate;
  14. private _onStop;
  15. private _onPlay;
  16. private _cubemapTop;
  17. private _cubemapBottom;
  18. private _cubemapFront;
  19. private _cubemapBack;
  20. private _cubemapRight;
  21. private _cubemapLeft;
  22. private _cubeTexture;
  23. private _layers;
  24. sunSpeed: number;
  25. get layers(): number;
  26. set layers(layers: number);
  27. get sky(): any;
  28. get cubemapSky(): Mesh<import("three").BufferGeometry, import("three").Material | import("three").Material[]>;
  29. get enabled(): boolean;
  30. set enabled(value: boolean);
  31. get mode(): 'procedural' | 'cubemap' | '360';
  32. set mode(value: 'procedural' | 'cubemap' | '360');
  33. get cubemapTop(): Texture;
  34. set cubemapTop(value: Texture);
  35. get cubemapBottom(): Texture;
  36. set cubemapBottom(value: Texture);
  37. get cubemapFront(): Texture;
  38. set cubemapFront(value: Texture);
  39. get cubemapBack(): Texture;
  40. set cubemapBack(value: Texture);
  41. get cubemapRight(): Texture;
  42. set cubemapRight(value: Texture);
  43. get cubemapLeft(): Texture;
  44. set cubemapLeft(value: Texture);
  45. get mieDirectionalG(): number;
  46. set mieDirectionalG(value: number);
  47. get mieCoefficient(): number;
  48. set mieCoefficient(value: number);
  49. get turbidity(): number;
  50. set turbidity(value: number);
  51. get rayleigh(): number;
  52. set rayleigh(value: number);
  53. get luminance(): number;
  54. set luminance(value: number);
  55. get inclination(): number;
  56. set inclination(value: number);
  57. get azimuth(): number;
  58. set azimuth(value: number);
  59. get showSun(): boolean;
  60. set showSun(value: boolean);
  61. init(json?: SkyboxSerialization | SkyboxClass): void;
  62. private initProceduralSkybox;
  63. private initCubemapSkybox;
  64. toJSON(): SkyboxSerialization;
  65. fromJSON(json: SkyboxSerialization | SkyboxClass): void;
  66. private initWithDefaultValues;
  67. private getDefaultJSON;
  68. private setSunPosition;
  69. }
  70. export declare let Skybox: SkyboxClass;
  71. export type SkyboxSerialization = {
  72. _enabled: boolean;
  73. _mode: 'procedural' | 'cubemap' | '360';
  74. layers: number;
  75. _showSun?: boolean;
  76. inclination?: number;
  77. azimuth?: number;
  78. mieDirectionalG?: number;
  79. mieCoefficient?: number;
  80. turbidity?: number;
  81. rayleigh?: number;
  82. luminance?: number;
  83. _sunSpeed?: number;
  84. _cubemapTop?: Texture | undefined;
  85. _cubemapBottom?: Texture | undefined;
  86. _cubemapFront?: Texture | undefined;
  87. _cubemapBack?: Texture | undefined;
  88. _cubemapRight?: Texture | undefined;
  89. _cubemapLeft?: Texture | undefined;
  90. };
  91. export {};