官方提供的白膜服务可以通过以下方式设置纹理:
const url = "http://www.supermapol.com/realspace/services/3D-CQmodel_wireframe_2000/rest/realspace"
scene.open(url).then(function() {
const layer = scene.layers.find("CQmodel");
const hypsometricSetting = new Cesium.HypsometricSetting();
hypsometricSetting.emissionTextureUrl = 'http:localhost:3000/assets/images/纹理19.jpg';
layer.hypsometricSetting = {
hypsometricSetting: hypsometricSetting
};
})
但是改为BIM服务以上方式就报错,例如url改为http://www.supermapol.com/realspace/services/3D-BIMbuilding/rest/realspace:
RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:183: 'czm_getEmissiveTextureColor' : no matching overloaded function found
ERROR: 0:183: '=' : dimension mismatch
ERROR: 0:183: 'assign' : cannot convert from 'highp float' to 'highp 3-component vector of float'