https://blog.csdn.net/weixin_30848775/article/details/98373947
1,绘制高程
var shadingUniforms = {};
material = Cesium.Material.fromType('SlopeRamp');
shadingUniforms = material.uniforms;
加载地形瓦片:
viewer.terrainProvider = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
生成等高线:
var contourUniforms = {};
material = Cesium.Material.fromType('ElevationContour'); //专门绘制高程轮廓
contourUniforms = material.uniforms;
contourUniforms.width = 1;
contourUniforms.spacing = 500;
contourUniforms.color = Cesium.Color.RED;
高程设色: