Skip to content

Commit 96cbeda

Browse files
committed
Modified loading of the skybox images (#12)
1 parent f506dd6 commit 96cbeda

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ weapi.App = function(divid, opt_options) {
130130
this.scene.skyAtmosphere = new Cesium.SkyAtmosphere();
131131
}
132132
if (options['sky']) {
133-
//TODO: solve resources
134-
var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : '') + 'SkyBox/';
133+
var baseUrl = goog.isString(options['sky']) ?
134+
options['sky'] : window['CESIUM_BASE_URL'];
135+
var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : baseUrl) + 'SkyBox/';
135136
this.scene.skyBox = new Cesium.SkyBox({
136137
'sources': {
137138
'positiveX' : skyBoxBaseUrl + 'px.jpg',

0 commit comments

Comments
 (0)