getViewTransform method
Returns the combined projection-and-view transform for a render target
of the given dimensions.
Called once per Scene.render call. Implementations may read
dimensions (typically to compute aspect ratio) and any subclass
configuration to build the matrix.
Implementation
@override
Matrix4 getViewTransform(ui.Size dimensions) {
return _matrix4Perspective(
fovRadiansY,
dimensions.width / dimensions.height,
fovNear,
fovFar,
) *
_matrix4LookAt(position, target, up);
}