Fixed modelMatrix in generic primitive