add 'panorama' to SkinViewerOptions
This commit is contained in:
parent
0fac73356c
commit
5c2bcacf7c
|
@ -52,6 +52,11 @@ export interface SkinViewerOptions {
|
||||||
* The background of the scene. Default is transparent.
|
* The background of the scene. Default is transparent.
|
||||||
*/
|
*/
|
||||||
background?: ColorRepresentation | Texture;
|
background?: ColorRepresentation | Texture;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The panorama background to use. This option overrides 'background' option.
|
||||||
|
*/
|
||||||
|
panorama?: RemoteImage | TextureSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SkinViewer {
|
export class SkinViewer {
|
||||||
|
@ -125,6 +130,9 @@ export class SkinViewer {
|
||||||
if (options.background !== undefined) {
|
if (options.background !== undefined) {
|
||||||
this.background = options.background;
|
this.background = options.background;
|
||||||
}
|
}
|
||||||
|
if (options.panorama !== undefined) {
|
||||||
|
this.loadPanorama(options.panorama);
|
||||||
|
}
|
||||||
|
|
||||||
if (options.renderPaused === true) {
|
if (options.renderPaused === true) {
|
||||||
this._renderPaused = true;
|
this._renderPaused = true;
|
||||||
|
|
Loading…
Reference in New Issue