UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

43 lines (42 loc) 1.33 kB
/** * Utility class to create babylon skybox. */ export class Skybox { /** * @param {BABYLON.Scene} scene * @param {String} dir URL of the directory containing box images, babylonjs format * @param {number} [environmentIntensity=0] intensity of environment texture */ constructor(scene: BABYLON.Scene, dir: string, environmentIntensity?: number); scene: BABYLON.Scene; dir: string; size: number; environmentIntensity: number; rotation: any; infiniteDistance: boolean; /** * Create a skybox * * @param {BABYLON.Scene} scene * @param {String} dir URL of the directory containing box images, babylonjs format * @returns mesh of the box reated */ create(): this; skybox: any; environmentTexture: any; setTexture(texture: any): void; getTexture(): any; setEnabled(enabled: any): void; dispose(): void; /** * WorldListener method, called when an object is added to the scene. * If added object is instance of Background, installs this.skyboxChanged() as VRObject listener. * @param {VRObject} added */ added(added: VRObject): void; /** * VRObject listener triggerred on remote change * @param {Object} change contains texture property */ skyboxChanged(change: any): void; }