PolygonOffset control

Hi,

Is there any to use RenderState for czml path? I want set polygonOffset for dynamic path to void z fighting with terrain and billboard.
We controled depthTest for whole scene will lead path overlying on the billboard~~~
theViewer.scene.globe.depthTestAgainstTerrain = true;
So we need some ways to control depthTest and polygonOffet of every element such as polygon, billboard and point.
Looking forward to your help, thanks.

Hi Tristan,

If your billboards are the only issue, try the new depth test disable feature introduced here: https://github.com/AnalyticalGraphicsInc/cesium/pull/5166

(You’ll need to be on version 1.33 or 1.32).

When you add your billboard, just add "disableDepthTestDistance : Number.POSITIVE_INFINITY",

this means the depth test will never trigger, so the billboards will draw in front of everything.

Hope that helps,

  • Rachel