View coordinate vertex offset, failed and ST lost

sandcastle code
/pos_ec.xyz += offest;取消注释平面就不见了,也没有ST数值,期待您的回复,非常感谢

Hi there, thanks for posting a question to the CesiumJS forum!

In order to help us help you, could you clarify what end result you’re trying to achieve? I tried playing around with your sandbox example - specifically, I tried using the Cesium versions you suggested in these lines:

//1.130 Offset failed   1.95 is success
//pos_ec.xyz += offest; 

but I didn’t see any visual changes. When you say that the version 1.130 “failed” and 1.95 is “success”, what visual indicators go along with these?

As a side note, I notice that you’re extending the Primitive API and overriding the update method. This isn’t a supported technique, and will likely have unintended side effects. Similarly, Cesium.RenderState, Cesium.ShaderProgram, Cesium.VertexArray, Cesium.Pass, and Cesium.DrawCommand are not part of the library’s public API, so using them may also cause unexpected behavior.

If you can provide more information about your example, or just have questions, feel free to leave a reply!

感谢您的回复。我想要很简单。顶点着色里进行水位高程偏移,保留正确的UV坐标 您方便给个示例吗?
Thank you for your reply. I want it to be very simple. Can you provide an example of using water level elevation offset in vertex shading to preserve the correct UV coordinates?

您能帮助我把示例修改正确吗,需求是顶点可以偏移,有ST坐标