材質(zhì)控制:material
var redTube = viewer.entities.add({
name : 'Red tube with rounded corners',
polylineVolume : {
positions : Cesium.Cartesian3.fromDegreesArray([-85.0, 32.0,-85.0, 36.0,-89.0, 36.0]),
shape : computeCircle(6000.0),
//顏色回調(diào)
material : new Cesium.ColorMaterialProperty(new Cesium.CallbackProperty(function() {
return Cesium.Color.fromRandom({
minimumRed : 0.75,
minimumGreen : 0.75,
minimumBlue : 0.75,
alpha : 1.0
});
}, false))
}
});