Implement updating matrices in renderer