關閉      標題:cesium 挖地
內容:

map.disable3DGroundVisibility();

var wkt = "POLYGON((121.43942556003361 25.180099458187996,121.44692251602702 25.179236401960168,121.45060476649729 25.169838283016176,121.44300184646156 25.16796816271956,121.43804802748359 25.172403657785523,121.4354254174364 25.174705256495926,121.43942556003361 25.180099458187996,121.43942556003361 25.180099458187996))";
g = map.add3DGroundClassByWKT(wkt,
    {
        groundHeight: 10,
        digDepth: 150,
        ringWidthMeter: 10,
        topMaskOffset: 4,
        innerMaskDrop: 8,

        wallColor: new Cesium.ImageMaterialProperty({
            image: "pic/soil_texture.jpg",
            transparent: false
        }),

        bottomColor: new Cesium.ImageMaterialProperty({
            image: "pic/soil_texture_bottom.jpg",
            transparent: false
        }),

        topMaskColor: Cesium.Color.fromCssColorString("#5a5a5a").withAlpha(0),
        innerMaskColor: Cesium.Color.BLACK.withAlpha(0.01),

        edgeColor: Cesium.Color.BLACK.withAlpha(0.1),
        edgeWidth: 0.2,

        useClipping: true
    }
);