automatic uniform czm_model does not seem to respond to ModelInstanceCollection matrices

The automatic uniform czm_model does not seem to correspond to the Matrix passed to ModelInstanceCollection.

You can reproduce this by creating a ModelInstanceCollection and putting some gltf model in it:

Ah so the problem is ModelInstanceCollection contains a Model reference whose model matrix is the identity matrix, so likely czm_model is the identity matrix.

Try using czm_instanced_modelView instead. You’ll need to multiply that with czm_inverseView to get the world space matrix.

That could very well work, thanks!