代码如下:
const hyp = new cesium.HypsometricSetting()
hyp.emissionTextureArray = [
{
url: './static/building/building1.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 100,
VTiling: 100
},
{
url: './static/building/building2.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 80,
VTiling: 80
},
{
url: './static/building/building1.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 100,
VTiling: 100
},
{
url: './static/building/building1.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 100,
VTiling: 100
},
{
url: './static/building/building5.jpg',
USpeed: 0.5,
VSpeed: 0,
UTiling: 50,
VTiling: 50
},
{
url: './static/building/building1.jpg',
USpeed: 0.1,
VSpeed: 0,
UTiling: 30,
VTiling: 30
},
{
url: './static/building/building2.jpg',
USpeed: 0,
VSpeed: 0.5,
UTiling: 20,
VTiling: 20
},
{
url: './static/building/building3.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 100,
VTiling: 100
},
{
url: './static/building/building4.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 70,
VTiling: 70
},
{
url: './static/building/building5.jpg',
USpeed: 0,
VSpeed: 0,
UTiling: 70,
VTiling: 70
}
]
layer.hypsometricSetting = {
hypsometricSetting: hyp
}
报错信息如下:
An error occurred while rendering. Rendering has stopped.
undefined
RuntimeError: Fragment shader failed to compile. Compile log: ERROR: 0:172: 'czm_getEmissiveTextureColor' : no matching overloaded function found
ERROR: 0:172: '=' : dimension mismatch
ERROR: 0:172: 'assign' : cannot convert from 'highp float' to 'highp 3-component vector of float'
白膜数据是通过矢量面数据,设置风格拉起来的