Home Reference Source
import {Skybox} from 'spacekit/src/Skybox.js'
public class | source

Skybox

A class that adds a skybox (technically a skysphere) to a visualization.

Constructor Summary

Public Constructor
public

constructor(options: Object, contextOrSimulation: Object)

Method Summary

Public Methods
public

get3jsObjects(): THREE.Object

A list of THREE.js objects that are used to compose the skybox.

public

Get the unique ID of this object.

Public Constructors

public constructor(options: Object, contextOrSimulation: Object) source

Params:

NameTypeAttributeDescription
options Object

Options

options.textureUrl String

Texture to use

options.basePath String

Base path to simulation supporting files

contextOrSimulation Object

Simulation context or simulation object

Public Methods

public get3jsObjects(): THREE.Object source

A list of THREE.js objects that are used to compose the skybox.

Return:

THREE.Object

Skybox mesh

public getId(): String source

Get the unique ID of this object.

Return:

String

id