how to write a custom appearance that allows per-instance cylinder height

Hello,

I have several cylinders in a primitive, each cylinder has different position and height.

I want to change the height of these cylinders but remove and add a new one is not a good idea

someone asks the question in https://groups.google.com/forum/#!searchin/cesium-dev/change$20modelmatrix|sort:relevance/cesium-dev/uFjOz5F0uK8/lW2RdoJKk4wJ

Patrick Cozzi said that " it is possible to write a custom appearance that allows per-instance cylinder height and applies it in the vertex shader."

but how?

Hello,

I would recommend just removing the old one and adding a new one. Performance should be fine for a number of cylinders.

Best,

Hannah