http://52.4.31.236/convertmodel.html
https://blog.csdn.net/UmGsoil/article/details/74572877
var viewer = new Cesium.Viewer('cesiumContainer')
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706),
model : {
uri : '../../SampleData/models/CesiumGround/Cesium_Ground.gltf',
//模型颜色,透明度
color : Cesium.Color.fromAlpha(Cesium.Color.RED, parseFloat(0.5)),
//轮廓线
silhouetteColor : Cesium.Color.fromAlpha(Cesium.Color.GREEN, parseFloat(0.5)),
//模型样式['Highlight', 'Replace', 'Mix']
colorBlendMode : Cesium.ColorBlendMode.MIX,
//colorBlendAmount需要选择mix后将colorBlendAmountEnabled设置为true才能使用
colorBlendAmountEnabled : true,
colorBlendAmount : parseFloat(0.8)
}
});
viewer.trackedEntity = entity;
---------------------
作者:simple-soul
来源:CSDN
原文:https://blog.csdn.net/UmGsoil/article/details/74572877
版权声明:本文为博主原创文章,转载请附上博文链接!