fabian
1
Has anyone any idea how to change the skybox to a simple white background color?
http://wurk.house/earth/Apps/spana.html
I have tried suggestion from:
https://cesiumjs.org/Cesium/Build/Documentation/SkyBox.html
But it doesn't change.
Thanks in advance for any help or guidance on this.
Since the SkyBox uses images, just supply a single image with one white pixel for each of the box’s sides.
var viewer = new Cesium.Viewer(‘cesiumContainer’, {
shouldAnimate : true
});
var scene = viewer.scene;
scene.skyBox = new Cesium.SkyBox({
sources : {
positiveX : ‘…/…/SampleData/WhitePixel.png’,
negativeX : ‘…/…/SampleData/WhitePixel.png’,
positiveY : ‘…/…/SampleData/WhitePixel.png’,
negativeY : ‘…/…/SampleData/WhitePixel.png’,
positiveZ : ‘…/…/SampleData/WhitePixel.png’,
negativeZ : ‘…/…/SampleData/WhitePixel.png’
}
});
``
Scott
fabian
3
Hi Scott,
That worked perfectly.
Thanks so much for that info.
Much appreciated.