Made glare haloes fade as objects grow larger than a single pixel.

ver1_5_1
Chris Laurel 2006-12-05 13:02:16 +00:00
parent 419ea39ae0
commit f0c4e5452d
1 changed files with 2 additions and 1 deletions

View File

@ -2117,7 +2117,7 @@ void Renderer::renderObjectAsPoint(Point3f position,
if (discSizeInPixels > maxDiscSize)
{
fade = (maxBlendDiscSize - discSizeInPixels) /
(maxBlendDiscSize - maxDiscSize - 1.0f);
(maxBlendDiscSize - maxDiscSize);
if (fade > 1)
fade = 1;
}
@ -2159,6 +2159,7 @@ void Renderer::renderObjectAsPoint(Point3f position,
}
alpha *= fade;
glareAlpha *= fade;
// TODO: Should offset this so that it lies in front of the
// object, e.g. center = position * ((distance - radius) / distance)