用supermap 开源加载s3m图层报错!
1、开源地址https://github.com/SuperMap/s3m-spec
2、相关代码
let viewer = new Cesium.Viewer('cesiumContainer',{
});
let scene = viewer.scene;
require(['./js/S3MTiles/S3MTilesLayer'], function(S3MTilesLayer) {
let layer = new S3MTilesLayer({
context : scene._context,
url: 'http://localhost:8080/3d/route.scp'
});
scene.primitives.add(layer);
layer.readyPromise.then(function() {
debugger;
scene.camera.setView({
destination : new Cesium.Cartesian3(-2182469.166141913, 4386579.0994979935, 4069925.783807108),
orientation : {
heading : 5.213460518239332,
pitch : -0.5150671720144846
}
});
}).otherwise(function(error) {
console.log(error);
});
})
3、报错:[Cesium WebGL] Fragment shader compile log: ERROR: 0:74: 'GL_EXT_shader_texture_lod' : extension is disabled