Hello everyone,
This is in reference to
https://github.com/AnalyticalGraphicsInc/cesium/pull/3451/files
I am having trouble being able to pass arguments i.e. color to this api.
Sample code
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.skyAtmosphere = new Cesium.SkyAtmosphere();
Now what is the best way to send a property colours to this object?
hannah
2
Hello,
If you look at the class declaration for SkyAtmosphere, you see that it takes in an ellipsoid as a parameter: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/SkyAtmosphere.js#L64
You can change this so that it also takes an optional color as a parameter.
Best,
Hannah
Hi,
Does that mean I create a parameter called options,
and that parameter will have two things
-
Ellipsoid
-
Color
Just like it is with https://cesiumjs.org/Cesium/Build/Documentation/Moon.html ?
hannah
4
Yes, you could do it that way
-Hannah