1. A concise explanation of the problem you’re experiencing.
We are using 2525B symbol icons on billboards to represent units on the globe. As the units are damaged, I’ve been setting the alpha of the billboard’s color(white) to make the unit translucent. This works well until you have several units stacked in the same area. The stacked units appear white. I’m looking for an alternate solution to avoid the white appearance. I don’t think I want to change the translucecyByDistance? Or should I just set that so that the camera is always far or always near?
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
**// **DEFAULT_BILLBOARD_COLOR = Cesium.Color.WHITE
var healthColor = DEFAULT_BILLBOARD_COLOR.withAlpha( Math.max( 0.10, value / 100.0) );
var billboard = node.cesiumObj.billboard;
if ( billboard.color.setValue ) {
billboard.color.setValue( healthColor );
}
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
Described above.
4. The Cesium version you’re using, your operating system and browser.
Windows 10, Chrome v62, Cesium 1.40