public virtual void SetLens(float aspect) {
Aspect = aspect;
NearWindowHeight = 2.0f * NearZ * MathF.Tan(0.5f * FovY);
FarWindowHeight = 2.0f * FarZ * MathF.Tan(0.5f * FovY);
Proj = Matrix.PerspectiveFovLH(FovY, Aspect, NearZ, FarZ);
}
protected virtual void ResetCamera() { Camera = GetCamera(); Camera.SetLens(AspectRatio); }