上一篇我们说了创建地面站,那么这次我们在地面站添加一些特效。
1. 创建地面站
var locationPoint1 = new PointCartographic(m_earth, new Cartographic(Trig.DegreesToRadians(117.17066), Trig.DegreesToRadians(31.84056), 240.359));
m_facility = new Platform
{
Name = "DMZ",
LocationPoint = locationPoint1,
// Orient the facility using East-North-Up (ENU) axes.
OrientationAxes = new AxesEastNorthUp(m_earth, locationPoint1),
};
// Set the identifier for the facility in the CZML document.
m_facility.Extensions.Add(new IdentifierExtension("DSS"));
// Configure a glTF model for the facility.
m_facility.Extensions.Add(new ModelGraphicsExtension(new ModelGraphics
{
// Link to a binary glTF file.
Model = new CesiumResource(GetModelUri("facility.glb"), CesiumResourceBehavior.LinkTo),
RunAnimations = false,
HeightReference = CesiumHeightReference.ClampToGround,
}));
// Configure label for AGI HQ.
m_facility.Extensions.Add