Turn of Sun Stars and atmosphere

I am new to Cesium and have just started playing with it. I was wondering how to turn of the Sun, Stars, and atmosphere in the call:

var viewer = new Cesium.Viewer(‘cesiumContainer’, {

imageryProvider : new Cesium.WebMapServiceImageryProvider({

url : ‘http://localhost:8080/geoserver/ows’,

layers: ‘r:earth’

}),

baseLayerPicker : false,

animation: false,

geocoder: false,

timeline: false

});

Thanks!

Calvin,

Add this right after you create the viewer:

var scene = viewer.scene;

scene.skyBox = scene.skyBox.destroy();

scene.skyAtmosphere = scene.skyAtmosphere.destroy();

scene.sun = scene.sun.destroy();

Patrick

Don’t forget the moon.

scene.moon = scene.moon.destroy();