pickTranslucentDepth

When true, enables picking translucent geometry using the depth buffer. Note that Scene.useDepthPicking must also be true for enabling this to work.

There is a decrease in performance when enabled. There are extra draw calls to write depth for translucent geometry.

// picking the position of a translucent primitive
viewer.screenSpaceEventHandler.setInputAction(function onLeftClick(movement) {
const pickedFeature = viewer.scene.pick(movement.position);
if (!Cesium.defined(pickedFeature)) {
// nothing picked
return;
}
const worldPosition = viewer.scene.pickPosition(movement.position);
}, ScreenSpaceEventType.LEFT_CLICK);

See also