new Cesium.Geometry({
attributes: {
//几何顶点属性
position: new Cesium.GeometryAttribute({
componentDatatype: Cesium.ComponentDatatype.DOUBLE, //数据类型
componentsPerAttribute: 3, //定义几个为一组
values: positions, //坐标值
}),
// st: new Cesium.GeometryAttribute({
// componentDatatype: Cesium.ComponentDatatype.FLOAT, //数据类型
// componentsPerAttribute: 2, //定义几个为一组
// values: sts, //坐标值
// }),
color: new Cesium.GeometryAttribute({
componentDatatype: Cesium.ComponentDatatype.FLOAT,
componentsPerAttribute: 4,
values: colors,
}),
alpha: new Cesium.GeometryAttribute({
componentDatatype: Cesium.ComponentDatatype.FLOAT,
componentsPerAttribute: 1,
values: thas.alpha,
}),
},
indices: positionIndex,
//POINTS TRIANGLE_STRIP TRIANGLES
primitiveType: Cesium.PrimitiveType.TRIANGLES,
boundingSphere: Cesium.BoundingSphere.fromVertices(positions), //包围球
})
is 3dtile have way to get custom data in shader like this?