1. A concise explanation of the problem you're experiencing.
I'm drawing shapes on the ground using CorridorGraphics. I'm setting a color constant for the material, e.g. like this:
var foo = viewer.entities.add({
id: 'XXX',
name: 'name of XXX',
corridor: {
positions: Cesium.Cartesian3.fromDegreesArray([
lon1, lat1,
lon2, lat2
]),
width: ww,
cornerType: Cesium.CornerType.MITERED,
material: Cesium.Color.GREEN
}
});
when I render this, I see that the color rendered is not constant, but the RGB values vary a little bit, e.g. between (27, 138, 44), (25, 142, 35), (24, 144, 33), (25, 142, 35)
I'd like to have the corridor rendered so that the color rendered is actually constant, e.g. gives the same RGB value for each pixel in the corridor from all viewpoints
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
see above
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I'd like to record an animation of a scene with the corridors on it, with the corridors covering their area with same colored pixels
4. The Cesium version you're using, your operating system and browser.
1.50, Chrome, Ubuntu 18.04