take FOV into account when determining screen size of planets/stars

master
John Bartholomew 2014-03-24 19:32:09 +00:00
parent 9ee6085198
commit 0bd1a071cf
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ void Camera::Update()
attrs.bodyFlags = b->GetFlags();
// approximate pixel width (disc diameter) of body on screen
float pixSize = (Graphics::GetScreenWidth() * rad / attrs.camDist);
const float pixSize = Graphics::GetScreenHeight() * 2.0 * rad / (attrs.camDist * Graphics::GetFovFactor());
if (pixSize < OBJECT_HIDDEN_PIXEL_THRESHOLD)
continue;