UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

32 lines (31 loc) 911 B
/** * 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; }