Cesium 视频纹理
话不多说,直接上代码
javascript
<video id="video_dom">
<source src="./video.mp4" type="video/mp4" />
</video>
var videoElement = document.getElementById("video_dom");
videoElement.play();
viewer.entities.add({
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArray(lnglat),
material: videoElement,
},
});