public override void SetLens(float aspect = 0f) {
Proj = Matrix.OrthoLH(Width, Height, NearZ, FarZ);
UpdateViewMatrix();
}
private void SetWheelShadowCamera() { _shadowSize = _carHelper.GetWheelShadowSize() * (1f + 2f * WheelPadding / WheelSize); var size = Math.Max(_shadowSize.X, _shadowSize.Z) * 2f; _shadowCamera = new CameraOrtho { Width = size, Height = size, NearZ = 0.001f, FarZ = size + 20f }; _shadowCamera.SetLens(1f); _shadowDestinationTransform = Matrix.Scaling(new Vector3(-_shadowSize.X, _shadowSize.Y, _shadowSize.Z)) * Matrix.RotationY(MathF.PI); }