model_get_model_matrix function

Get the model matrix of a model