1. 程式人生 > >Cesium.js學習第三天(模型展示)

Cesium.js學習第三天(模型展示)

var viewer = new Cesium.Viewer('cs');

viewer.scene.primitives.add(Cesium.Model.fromGltf({
    url : '/Cesium-1.51/Specs/Data/Models/WEB3DQuantizedAttributes/CesiumMilkTruck-Mismatch-Quantized.gltf',
modelMatrix : Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(-75.62898254394531, 40.02804946899414, 0.0)),
minimumPixelSize : 5120,
maximumScale : 2000000
}));