getProjectionMatrix method

  1. @override
Matrix4 getProjectionMatrix(
  1. double aspectRatio, {
  2. Vector2? jitter,
})
override

Returns the projection matrix for a render target of the given aspectRatio (width / height).

Implementation

@override
Matrix4 getProjectionMatrix(double aspectRatio, {Vector2? jitter}) =>
    _matrix4OffAxis(
      tanLeft,
      tanRight,
      tanDown,
      tanUp,
      near,
      far,
      jitter: jitter,
    );