getViewMatrix method
Returns the world-to-view transform (the view matrix), independent of the render target size.
Implementation
@override
Matrix4 getViewMatrix() {
// The view matrix is the inverse of the camera's world transform.
// copyInverse(arg) writes inverse(arg) into the receiver.
final view = Matrix4.identity();
view.copyInverse(_worldTransform);
return view;
}