new Cesium.GlobeTranslucency()

控制地球透明化的属性 .

Members

backFaceAlpha : number

常透明地适用于地球的背面.

GlobeTranslucency#enabled must be set to true for this option to take effect.
Default Value: 1.0
Example:
// Set back face translucency to 0.5.
globe.translucency.backFaceAlpha = 0.5;
globe.translucency.enabled = true;
See:

backFaceAlphaByDistance : NearFarScalar

根据相机的距离,获取或设定地球后脸的近和远透明特性. The translucency will interpolate between the NearFarScalar#nearValue and NearFarScalar#farValue while the camera distance falls within the lower and upper bounds of the specified NearFarScalar#near and NearFarScalar#far. 在这些范围之外,透明性仍被限制在最接近的界限内。 如果未定义, 背面的AlphaByDistance将被禁用.

GlobeTranslucency#enabled must be set to true for this option to take effect.
Default Value: undefined
Examples:
// Example 1.
// Set back face translucency to 0.5 when the
// camera is 1500 meters from the surface and 1.0
// as the camera distance approaches 8.0e6 meters.
globe.translucency.backFaceAlphaByDistance = new Cesium.NearFarScalar(1.5e2, 0.5, 8.0e6, 1.0);
globe.translucency.enabled = true;
// Example 2.
// Disable back face translucency by distance
globe.translucency.backFaceAlphaByDistance = undefined;
See:

enabled : boolean

如果是真的,地球会变成半透明表面.

The alpha is computed by blending Globe#material, Globe#imageryLayers, and Globe#baseColor, all of which may contain translucency, and then multiplying by GlobeTranslucency#frontFaceAlpha and GlobeTranslucency#frontFaceAlphaByDistance for front faces and GlobeTranslucency#backFaceAlpha and GlobeTranslucency#backFaceAlphaByDistance for back faces. 当相机是地下后脸和前脸互换时, NT 0 . 背面几何 被认为是正面面对.

透明默认被禁用 .
Default Value: false
See:

frontFaceAlpha : number

常透明地适用于全球的正面.

GlobeTranslucency#enabled must be set to true for this option to take effect.
Default Value: 1.0
Example:
// Set front face translucency to 0.5.
globe.translucency.frontFaceAlpha = 0.5;
globe.translucency.enabled = true;
See:

frontFaceAlphaByDistance : NearFarScalar

根据相机的距离,获得或设定地球正面近和远的透明特性. The translucency will interpolate between the NearFarScalar#nearValue and NearFarScalar#farValue while the camera distance falls within the lower and upper bounds of the specified NearFarScalar#near and NearFarScalar#far. 在这些范围之外,透明性仍被限制在最接近的界限内。 如果未定义, 前置 AlphaByDistance 将禁用.

GlobeTranslucency#enabled must be set to true for this option to take effect.
Default Value: undefined
Examples:
// Example 1.
// Set front face translucency to 0.5 when the
// camera is 1500 meters from the surface and 1.0
// as the camera distance approaches 8.0e6 meters.
globe.translucency.frontFaceAlphaByDistance = new Cesium.NearFarScalar(1.5e2, 0.5, 8.0e6, 1.0);
globe.translucency.enabled = true;
// Example 2.
// Disable front face translucency by distance
globe.translucency.frontFaceAlphaByDistance = undefined;
See:

rectangle : Rectangle

指定用于将透明性限制在制图区域的 Rectangle 属性 . 默认地图坐标的最大范围.
Default Value: Rectangle.MAX_VALUE
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.