Warp Polygon's (image) material's corners to fit container's

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

I’d like to be able to add a trapezoid (which I believe the only way would be through the polygon object, correct me if I am wrong). But my material will always appear towards the initial view. How can I warp my material corners to fit exactly the points of its container?

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

Not needed

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

I need it to georeference images on a map

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

1.62 - iOS Mojave - Google chrome

Changing how the material wraps around the geometry involves changing how the UV’s are computed, which would require either modifying the source code or creating your own custom geometry (this thread talks a bit about this https://groups.google.com/d/msg/cesium-dev/YGvLhpY3OoQ/EvC13GN0FQAJ).

If your goal is that you have images that need to be displayed at a specific longitude/latitude on the map, I’m curious why you’re not just using the SingleTileImageryLayer to drape it on the globe:


If that doesn’t help, can you tell me a bit more about your use case?