I’m following this official tutorial on adding model entity.
In the tutorial, the Cesium_Air.glb
model is loaded via fetching to my IonResources. However, I want to be able to load it statically (I already downloaded the .glb).
For example, I’m currently trying:
viewer.entities.add({
model: require('./assets/Cesium_Air.glb')
})
or
viewer.entities.add({
model: {
uri: './assets/Cesium_Air.glb'
}
})
What would be the best way for me to achieve this?