Extract out setProjectionMatrix method.