How to change entity opacity on camera distance, NOT using "translucencyByDistance" ?

1. A concise explanation of the problem you’re experiencing.

Id’ like to fade entyies (billboards, labels, etc) on the base of their own distance from the camera, and the camera pitch.

With “CallbackProperty” I can’t pass to the function the entity position, to calculate the distance.

If I change their material properties directly obviously them flash.

Is there another way?

Thank-you

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

To fade

4. The Cesium version you’re using, your operating system and browser.

1.66

Solved

Hi, Danielle.
Would you care sharing the solution?

Best regards,