new RadarWaveMaterialProperty(options) → {Object}
雷达波动材质
Examples
1. Entity 使用材质 Plane为例
let material = new Cesium.RadarWaveMaterialProperty() // 默认参数
let entity = viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(117.090795612294, 31.14224105521026, 1),
plane: {
plane: new Cesium.Plane(Cesium.Cartesian3.UNIT_Z, 0.0),
dimensions: new Cesium.Cartesian2(1000, 1000),
material: material
}
})
2. Primitive 使用材质 Plane为例
const instance = new Cesium.GeometryInstance({
geometry: new Cesium.PlaneGeometry({
vertexFormat: Cesium.VertexFormat.DEFAULT
})
});
let eunMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(
Cesium.Cartesian3.fromDegrees(117.090795612294, 31.13224105521026, 1))
let scaleMatrix = Cesium.Matrix4.fromScale(new Cesium.Cartesian3(1000, 1000, 1))
let rotationMatrix = Cesium.Matrix4.fromRotationTranslation(
Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(90)));
Cesium.Matrix4.multiply(eunMatrix, rotationMatrix, eunMatrix)
Cesium.Matrix4.multiply(eunMatrix, scaleMatrix, eunMatrix)
viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances: instance,
appearance: new Cesium.MaterialAppearance({
material: Cesium.Material.fromType(Cesium.Material.RadarWaveMaterialType)
}),
modelMatrix: eunMatrix
}));
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* | 具有以下属性: Properties
|
Returns:
材质实例
- Type
- Object