动态纹理-颜色

2021-11-10  本文已影响0人  Cherry9507

材质控制: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),
        //颜色回调
        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))
    }
});
上一篇 下一篇

猜你喜欢

热点阅读