-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
What happened?
When rendering a Billboard with depth testing enabled, the visual result appears incorrect in newer versions of Cesium compared to version 1.132.0.
Specifically, the billboard is not properly occluded by terrain when it should be partially or fully hidden behind it.
Expected Behavior
As shown in Cesium 1.132.0, the billboard should be correctly depth-tested against terrain:
The billboard is properly occluded when behind terrain
Only the visible portion should be rendered
Actual Behavior
In newer versions:
The billboard appears incorrectly rendered
It is either:
Not occluded at all, or
Incorrectly clipped/positioned relative to terrain depth
Screenshots
Correct behavior (Cesium 1.132.0):
Incorrect behavior (newer version):
Reproduction Steps
Create a Billboard positioned near terrain surface (e.g., hillside)
Enable depth testing:
viewer.scene.globe.depthTestAgainstTerrain = true;
Position the camera at an angle where terrain should occlude the billboard
Observe rendering differences between versions
Environment
Cesium version:1.139.0
Additional Notes
This appears to be a regression introduced after 1.132.0
The issue is especially noticeable when the billboard is placed close to terrain slopes
It may be related to depth buffer precision or billboard rendering pipeline changes
Possible Related Settings
billboard.disableDepthTestDistance = 0;