Skip to content

Commit

Permalink
Modified loading of the skybox images (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrsloup committed Jul 23, 2014
1 parent f506dd6 commit 96cbeda
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ weapi.App = function(divid, opt_options) {
this.scene.skyAtmosphere = new Cesium.SkyAtmosphere();
}
if (options['sky']) {
//TODO: solve resources
var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : '') + 'SkyBox/';
var baseUrl = goog.isString(options['sky']) ?
options['sky'] : window['CESIUM_BASE_URL'];
var skyBoxBaseUrl = (goog.DEBUG ? '../deploy/' : baseUrl) + 'SkyBox/';
this.scene.skyBox = new Cesium.SkyBox({
'sources': {
'positiveX' : skyBoxBaseUrl + 'px.jpg',
Expand Down

0 comments on commit 96cbeda

Please sign in to comment.