效果圖

20210917_111945-0-5.gif
材質設置
uniforms: {
color: new Cesium.Color(1.0, 1.0, 1.0, 1.0),
image: './images/yunceng.jpg'
},
components: {
alpha:
'texture2D(image, fract(repeat * materialInput.st)).r * color.a',
diffuse: 'vec3(1.0)'
}
通過postUpdate更新heading
Cesium.Transforms.headingPitchRollToFixedFrame(
new Cesium.Cartesian3(),
new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(heading), 0, 0)
)