diff --git a/src/viewer.ts b/src/viewer.ts index efb84d8..0bf5cb0 100644 --- a/src/viewer.ts +++ b/src/viewer.ts @@ -52,6 +52,11 @@ export interface SkinViewerOptions { * The background of the scene. Default is transparent. */ background?: ColorRepresentation | Texture; + + /** + * The panorama background to use. This option overrides 'background' option. + */ + panorama?: RemoteImage | TextureSource; } export class SkinViewer { @@ -125,6 +130,9 @@ export class SkinViewer { if (options.background !== undefined) { this.background = options.background; } + if (options.panorama !== undefined) { + this.loadPanorama(options.panorama); + } if (options.renderPaused === true) { this._renderPaused = true;