Without getting into too much detail, my project involves modifying the height of the landscape as a function of distance from the camera, using world position offset. It worked fine in older versions of Cesium by adding a WPO to the landscape overlay material (now deprecated Cesium masked overlay). At some point with version upgrades, it stopped working this way and I had to come up with a workaround. I can add the WPO to the “ThreeOverlaysandClipping” material and apply it to the landscape, but any distant displaced tiles now flicker and won’t display properly. The only way to stop the flickering and still have the desired displacement is to set the overlay material to translucent. This works without any flickering, but it makes the landscape no longer display shadows, and the lighting seems off.
I’ve tried different types of blends, even adding the offset directly to the CesiumGITFFunction, and a bunch of different things, but nothing seems to work any better. Is there a “proper” way to add a WPO to the landscape?