Constructor
new Skybox(scene, dir, environmentIntensityopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
scene |
BABYLON.Scene | |||
dir |
String | URL of the directory containing box images, babylonjs format | ||
environmentIntensity |
number |
<optional> |
0 | intensity of environment texture |
- Source:
Classes
Methods
added(added)
WorldListener method, called when an object is added to the scene.
If added object is instance of Background, installs this.skyboxChanged() as VRObject listener.
Parameters:
Name | Type | Description |
---|---|---|
added |
VRObject |
- Source:
create(scene, dir)
Create a skybox
Parameters:
Name | Type | Description |
---|---|---|
scene |
BABYLON.Scene | |
dir |
String | URL of the directory containing box images, babylonjs format |
- Source:
Returns:
mesh of the box reated
skyboxChanged(change)
VRObject listener triggerred on remote change
Parameters:
Name | Type | Description |
---|---|---|
change |
Object | contains texture property |
- Source: