entity on water → z-fighting?


I just noticed that, when zooming in on a polygon on the ground, if the ground is water, there is some sort of z-fighting effect. is does not happen on land, it seems.

see this gif: http://pasteboard.co/t81TSbJ4Q.gif


Could you paste a code example to reproduce this problem?



const origin = { lat: 0, lng: 0 };
const originLocation = Cesium.Cartesian3.fromDegrees(origin.lng, origin.lat, 500);

const viewer = new Cesium.Viewer(constants.viewerElemId, {});
  destination: originLocation,

const { lat, lng } = origin;
const dim = 0.001;
const rect = viewer.entities.add({
  name: 'id',
  polygon: {
    hierarchy: {
      positions: Cesium.Cartesian3.fromDegreesArray([
        lng - dim, lat - dim,
        lng + dim, lat - dim,
        lng + dim, lat + dim,
        lng - dim, lat + dim
    material: Cesium.Color.WHITE,
    outline: false,

I didn’t see the artifacts on my computer. What OS and graphics card does your computer have? Also, what browser are you using?


I'm using chrome 55.0.2883.95 (64-bit) on macOS 10.12.3, on a macbook pro, which has the following graphics adapters:
- Radeon Pro 450
- Intel HD Graphics 530

Ah, I think this is a Mac specific issue. See details in this bug report: https://github.com/AnalyticalGraphicsInc/cesium/issues/4820
I’ve added a link to your forum post so we can let you know when we get a chance to look into the bug.